stager
stager copied to clipboard
Stager broken for web targets
running stager app with target -d chrome throws an exception:
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following LateError was thrown building FutureBuilder<void>(dirty, state:
_FutureBuilderState<void>#70573):
LateInitializationError: Field 'controller' has not been initialized.
The relevant error-causing widget was:
FutureBuilder<void>
FutureBuilder:file:///Users/kenzieschmoll/.pub-cache/hosted/pub.dev/stager-0.1.0/lib/src/stager_app.dart:41:12
When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49 throw_
default.dart 29:25 get controller
default.dart 36:15 build
packages/stager/src/stager_app.dart 52:59 <fn>
packages/flutter/src/widgets/async.dart 616:48 build
packages/flutter/src/widgets/framework.dart 5080:27 build
packages/flutter/src/widgets/framework.dart 4968:15 performRebuild
packages/flutter/src/widgets/framework.dart 5133:11 performRebuild
packages/flutter/src/widgets/framework.dart 4690:5 rebuild
packages/flutter/src/widgets/framework.dart 2743:18 buildScope
packages/flutter/src/widgets/binding.dart 867:9 drawFrame
packages/flutter/src/rendering/binding.dart 381:5 [_handlePersistentFrameCallback]
packages/flutter/src/scheduler/binding.dart 1289:15 [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1218:9 handleDrawFrame
packages/flutter/src/scheduler/binding.dart 942:7 <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 48:19 internalCallback
Hmm, this works for me when running from VS Code but not when using flutter run example/lib/main.dart -d chrome, although I get a different error.
Which version of Flutter are you using? Could you also include the full flutter run command? Thanks!