Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail on iOS with fallbackColor set. #18

Closed
kj415j45 opened this issue Jun 7, 2023 · 0 comments · Fixed by #19
Closed

Fail on iOS with fallbackColor set. #18

kj415j45 opened this issue Jun 7, 2023 · 0 comments · Fixed by #19

Comments

@kj415j45
Copy link
Contributor

kj415j45 commented Jun 7, 2023

Env:

  • Host
    • MacOS 12.6.2
    • Flutter 3.10.3 (Dart 3.0.3) stable channel
  • Target
    • iPhone 14 (simulator)
    • iOS 16.2

Code:

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  SystemTheme.fallbackColor = const Color(0xFF1f1e33);
  await SystemTheme.accentColor.load();

  runApp(MyApp());
}

Error stack:

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method SystemTheme.accentColor on channel system_theme)
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:308:7)
<asynchronous suspension>
#1      SystemAccentColor.load (package:system_theme/system_theme.dart:88:20)
<asynchronous suspension>
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method SystemTheme.accentColor on channel system_theme)
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:308:7)
<asynchronous suspension>
#1      SystemAccentColor.load (package:system_theme/system_theme.dart:88:20)
<asynchronous suspension>
#2      main (package:playground/main.dart:8:3)
<asynchronous suspension>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant