alibaba / alibaba/flutter_boost
Please check if the engine has been initialized!
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
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)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at BoostNavigator.push in flutter_boost/src/boost_navigator.dart, especially the assertion at line 73, and compare it with the initialization path that precedes the call. Reproduce the failure using the reported Flutter Boost 3.1.2 and Flutter 2.0.5 versions, then establish the expected behavior when navigation occurs before initialization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100