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

flutter_boost与intl一起使用时 白屏 #1789

Open
zhangqibin opened this issue Feb 8, 2023 · 0 comments
Open

flutter_boost与intl一起使用时 白屏 #1789

zhangqibin opened this issue Feb 8, 2023 · 0 comments

Comments

@zhangqibin
Copy link

使用方法:
localizationsDelegates: const [
GlobalCupertinoLocalizations.delegate, // Cupertino组件的翻译回调
GlobalMaterialLocalizations.delegate, // Material组件的翻译回调
GlobalWidgetsLocalizations.delegate, // 普通 Widget 的翻译回调
S.delegate, // 应用程序的翻译回调
],
supportedLocales: S.delegate.supportedLocales,
错误原因:
S.delegate
错误日志:
flutter: FlutterBoost#Oops, Failed to update overlay. mode=BoostSpecificEntryRefreshMode.add, BoostContainer(name:/, pages:[BoostPage(name:/, uniqueId:1675850548981_/, arguments:null)])
flutter: NoSuchMethodError: The method 'addEventListener' was called on null.
flutter: Receiver: null
flutter: Tried calling: addEventListener()
BoostChannel.addEventListener (package:flutter_boost/src/boost_channel.dart:32)
flutter: #1 FlutterBoostAppState._addAppLifecycleStateEventListener (package:flutter_boost/src/flutter_boost_app.dart:118)
flutter: #2 FlutterBoostAppState.initState. (package:flutter_boost/src/flutter_boost_app.dart:107)
flutter: #3 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144)
flutter: #4 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1090)
flutter: #5 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:998)
flutter: #9 _invoke (dart:ui/hooks.dart:163)
flutter: #10 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:259)
flutter: #11 _drawFrame (dart:ui/hooks.dart:126)
flutter: (elided 3 frames from dart:async)
flutter: Another exception was thrown: Instance of 'ErrorSummary'

这两个库是有冲突吗

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

No branches or pull requests

1 participant