diff --git a/recipes-graphics/flutter-engine/files/0005-dart-enable-mallinfo2.patch b/recipes-graphics/flutter-engine/files/0005-dart-enable-mallinfo2.patch
new file mode 100644
index 0000000000000000000000000000000000000000..62f02420053c1a6c08d26a96aaf44f135770dd9e
--- /dev/null
+++ b/recipes-graphics/flutter-engine/files/0005-dart-enable-mallinfo2.patch
@@ -0,0 +1,13 @@
+diff --git a/runtime/runtime_args.gni b/runtime/runtime_args.gni
+index dd25e813dff..8b3999abcc0 100644
+--- a/runtime/runtime_args.gni
++++ b/runtime/runtime_args.gni
+@@ -48,7 +48,7 @@
+ 
+   # Whether to use mallinfo2 instead of mallinfo which is deprecated starting
+   # with libc 2.33
+-  dart_use_mallinfo2 = false
++  dart_use_mallinfo2 = true
+ 
+   # Whether to link Crashpad library for crash handling. Only supported on
+   # Windows for now.
diff --git a/recipes-graphics/flutter-engine/flutter-engine-%_git.bbappend b/recipes-graphics/flutter-engine/flutter-engine-%_git.bbappend
new file mode 100644
index 0000000000000000000000000000000000000000..85325187e23d30791441a839f85c448398b5bccb
--- /dev/null
+++ b/recipes-graphics/flutter-engine/flutter-engine-%_git.bbappend
@@ -0,0 +1,6 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+FILESEXTRAPATHS:append := ":${THISDIR}/files"
+SRC_URI:append = " file://0005-dart-enable-mallinfo2.patch;patchdir=third_party/dart"