Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/rfw/lib/src/flutter/argument_decoders.dart
Original file line number Diff line number Diff line change
Expand Up @@ -803,9 +803,14 @@ class ArgumentDecoders {
if (icon == null) {
return null;
}
// This constructs `IconData` at runtime, meaning it does not support
// the Flutter icon treeshaker.
return IconData(
// ignore: non_const_argument_for_const_parameter
icon,
// ignore: non_const_argument_for_const_parameter
fontFamily: source.v<String>([...key, 'fontFamily']),
// ignore: non_const_argument_for_const_parameter
matchTextDirection: source.v<bool>([...key, 'matchTextDirection']) ?? false,
);
}
Expand Down
Loading