mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix JSON map type declaration for SystemChrome.setApplicationSwitcherDescription arguments (flutter/engine#26769)
This commit is contained in:
parent
d8647f1c65
commit
a52739882c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user