-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Please check if the engine has been initialized! #1716
Comments
引擎还没有初始化~ |
参考这两条回答: |
flutter boost:3.1.2
flutter :2.0.5
BoostNavigator.push 会报如下错误
2022-09-16 19:19:03.230 32453-32523/com.plateno.botaoota E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: 'package:flutter_boost/src/boost_navigator.dart': Failed assertion: line 73 pos 9: 'appState != null': Please check if the engine has been initialized!
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2 BoostNavigator.push (package:flutter_boost/src/boost_navigator.dart:73:9)
#3 WHNavigator.open (package:wehotel_app/router/wh_navigator.dart:75:38)
#4 _HighLevelTabHomePageState.clickTab (package:wehotel_app/ui/tab_home/high_level_tab_home_page.dart:269:19)
#5 _HighLevelTabHomePageState.build.. (package:wehotel_app/ui/tab_home/high_level_tab_home_page.dart:197:19)
#6 _DemoFlowMenuStateClip._tap (package:wehotel_app/ui/tab_home/high_level_menu_bottom_clip.dart:176:19)
#7 _DemoFlowMenuStateClip.buildTab. (package:wehotel_app/ui/tab_home/high_level_menu_bottom_clip.dart:204:13)
#8 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
#9 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:607:11)
#10 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:296:5)
#11 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:230:7)
#12 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:475:9)
#13 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:93:12)
#14 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:138:9)
#15 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:397:8)
#16 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:136:18)
#17 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:122:7)
#18 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:381:19)
#19 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:361:22)
#20 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:278:11)
#21 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:316:7)
#22 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:280:5)
#23 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:238:7)
#24 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:221:7)
#25 _rootRunUnary (dart:async/zone.dart:1370:13)
#26 _CustomZone.runUnary (dart:async/zone.dart:1265:19)
#27 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
#28 _invoke1 (dart:ui/hooks.dart:180:10)
#29 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:276:7)
#30 _dispatchPointerDataPacket (dart:ui/hooks.dart:96:31)
The text was updated successfully, but these errors were encountered: