From ad53d5b6572ff960b2d6dd6a91043cb1845fd026 Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Tue, 10 Mar 2026 09:24:24 +0100 Subject: [PATCH] [rfw] Opt out of icon tree shaking --- packages/rfw/lib/src/flutter/argument_decoders.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/rfw/lib/src/flutter/argument_decoders.dart b/packages/rfw/lib/src/flutter/argument_decoders.dart index 10977fc23694..b40702fc7d23 100644 --- a/packages/rfw/lib/src/flutter/argument_decoders.dart +++ b/packages/rfw/lib/src/flutter/argument_decoders.dart @@ -804,7 +804,12 @@ class ArgumentDecoders { return null; } return IconData( + // RFW does _not_ support tree-shaking icons. Explicitly suppress the lint + // that warns about non-constant arguments which will cause the flutter + // icon tree shaker to bail out of tree-shaking icons. + // ignore: non_const_argument_for_const_parameter icon, + // ignore: non_const_argument_for_const_parameter fontFamily: source.v([...key, 'fontFamily']), matchTextDirection: source.v([...key, 'matchTextDirection']) ?? false, );