forked from firka/flutter
Fix JSON map type declaration for SystemChrome.setApplicationSwitcherDescription arguments (flutter/engine#26769)
This commit is contained in:
@@ -396,7 +396,7 @@ class EnginePlatformDispatcher extends ui.PlatformDispatcher {
|
||||
callback, codec.encodeSuccessEnvelope(true));
|
||||
return;
|
||||
case 'SystemChrome.setApplicationSwitcherDescription':
|
||||
final Map<String, Object> arguments = decoded.arguments;
|
||||
final Map<String, dynamic> arguments = decoded.arguments;
|
||||
// TODO: Find more appropriate defaults? Or noop when values are null?
|
||||
final String label = arguments['label'] as String? ?? '';
|
||||
final int primaryColor = arguments['primaryColor'] as int? ?? 0xFF000000;
|
||||
|
||||
Reference in New Issue
Block a user