alibaba / alibaba/flutter_boost
'container != null': is not true.
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
flutterboost集成到Android原生项目中,flutter页面首次显示会报下面的错误。
flutter boost版本:v3.0-release.1
flutter sdk:2.5.3
之前使用的是v3.0-release没有这个问题
═══════════════════════════════════════════════════════
The following assertion was thrown during a scheduler callback:
'package:flutter_boost/src/boost_lifecycle_binding.dart': Failed assertion: line 96 pos 12:
'container != null': is not true.
When the exception was thrown, this was the stack:
#2 BoostLifecycleBinding.containerDidShow (package:flutter_boost/src/boost_lifecycle_binding.dart:96:12)
I/flutter: #3 FlutterBoostAppState.onContainerShow (package:flutter_boost/src/flutter_boost_app.dart:635:36)
#4 BoostFlutterRouterApi.onContainerShow. (package:flutter_boost/src/boost_flutter_router_api.dart:74:16)
#5 BoostOperationQueue.runPendingOperations (package:flutter_boost/src/boost_operation_queue.dart:23:17)
#6 FlutterBoostAppState.initState. (package:flutter_boost/src/flutter_boost_app.dart:108:36)
#7 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
#8 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1088:9)
#9 SchedulerBinding.scheduleWarmUpFrame. (package:flutter/src/scheduler/binding.dart:863:7)
(elided 13 frames from class _AssertionError, class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)
══════════════════════════════════════════════════════════
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the first-page display in an Android native project using FlutterBoost v3.0-release.1 and Flutter SDK 2.5.3. Start by reading boost_lifecycle_binding.dart:96, flutter_boost_app.dart:635, and boost_flutter_router_api.dart:74, then compare the behavior with v3.0-release. Done means the first Flutter page displays without the 'container != null' assertion.
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