flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
162.28k stars 26.66k forks source link

Failed assertion: line 651 pos 12 in package:flutter/src/widgets/heroes.dart #115358

Open mokhin-denis opened 1 year ago

mokhin-denis commented 1 year ago

Steps to Reproduce

  1. Run the code sample in debug mode (for example with F5 in VS code)
  2. Click on button Go to /app/1/register

Expected results: Expect opening page Register

Actual results: _AssertionError ('package:flutter/src/widgets/heroes.dart': Failed assertion: line 651 pos 12 ... is not true.) But, if remove all FABs on all pages - everything going fine: all buttons and navigation work properly.

Code sample ```dart import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { MyApp({Key? key}) : super(key: key); late final _router = GoRouter(routes: [ GoRoute( path: '/', builder: (c, s) => const HomePage(), routes: [ GoRoute(path: 'app', builder: (c, s) => const AppPage(), routes: [ GoRoute( name: 'about', path: ':id', builder: (c, s) => AppAbout(id: s.params['id']), routes: [ GoRoute( name: 'register', path: 'register', builder: (c, s) => AppRegister(id: s.params['id']), ), ], ), ]) ], ), ]); @override Widget build(BuildContext context) { return MaterialApp.router( routeInformationProvider: _router.routeInformationProvider, routeInformationParser: _router.routeInformationParser, routerDelegate: _router.routerDelegate, title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), ); } } class HomePage extends StatelessWidget { const HomePage({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ ElevatedButton( onPressed: () => context.go('/app'), child: const Text('Go to /app')), ElevatedButton( onPressed: () => context.go('/app/1'), child: const Text('Go to /app/1')), ElevatedButton( onPressed: () => context.go('/app/1/register'), child: const Text('Go to /app/1/register')), ], ), )); } } class AppAbout extends StatelessWidget { final String? id; const AppAbout({this.id, super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text('About app ${id ?? 'none'}')), floatingActionButton: FloatingActionButton( onPressed: () => context.go('/app/${id ?? 'none'}/register'), child: const Icon(Icons.app_registration)), floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Text('Its app ${id ?? 'none'}!'), ElevatedButton( onPressed: () => context.go('/app/${id ?? 'none'}/register'), child: Text('Go to /app/${id ?? 'none'}/register')), ], ), )); } } class AppRegister extends StatelessWidget { final String? id; const AppRegister({this.id, super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text('Register app ${id ?? 'none'}')), body: Center( child: Text('Register app ${id ?? 'none'}!'), )); } } class AppPage extends StatelessWidget { const AppPage({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text('App page')), floatingActionButton: FloatingActionButton( onPressed: () {}, child: const Icon(Icons.app_registration)), floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, bottomNavigationBar: BottomAppBar( shape: const CircularNotchedRectangle(), child: Row( mainAxisAlignment: MainAxisAlignment.spaceAround, children: const [ Icon(Icons.home), SizedBox( width: 50, height: 50, ), Icon(Icons.more_horiz) ], )), body: const Center( child: Text('App page'), )); } } ```
Logs ``` [ +142 ms] executing: [d:\mokhin\sdk\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +170 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] 52b3dc25f6471c27b2144594abb11c741cb88f57 [ +1 ms] executing: [d:\mokhin\sdk\flutter/] git tag --points-at 52b3dc25f6471c27b2144594abb11c741cb88f57 [ +141 ms] Exit code 0 from: git tag --points-at 52b3dc25f6471c27b2144594abb11c741cb88f57 [ ] 3.3.8 [ +67 ms] executing: [d:\mokhin\sdk\flutter/] git rev-parse --abbrev-ref --symbolic @{upstream} [ +173 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream} [ ] origin/stable [ ] executing: [d:\mokhin\sdk\flutter/] git ls-remote --get-url origin [ +343 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +158 ms] executing: [d:\mokhin\sdk\flutter/] git rev-parse --abbrev-ref HEAD [ +114 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] stable [ +149 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +90 ms] executing: d:\mokhin\sdk\android\platform-tools\adb.exe devices -l [ +138 ms] List of devices attached [ +9 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +7 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +110 ms] Multiple devices found: [ +76 ms] Windows (desktop) тАв windows тАв windows-x64 тАв Microsoft Windows [Version 10.0.17763.3532] [ ] Chrome (web) тАв chrome тАв web-javascript тАв Google Chrome 107.0.5304.107 [ ] [1]: Windows (windows) [ ] [2]: Chrome (chrome) [ +1 ms] Please choose one (To quit, press "q/Q") [ ] : [+29309 ms] 1 [ +36 ms] Skipping pub get: version match. [ +243 ms] Generating D:\mokhin\projects\go_router_issue\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java [ +171 ms] Initializing file store [ +18 ms] Skipping target: gen_localizations [ +11 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: D:\mokhin\projects\go_router_issue\.dart_tool\package_config_subset} [ +40 ms] gen_dart_plugin_registrant: Complete [ +2 ms] Skipping target: _composite [ +4 ms] complete [ +7 ms] Launching lib\main.dart on Windows in debug mode... [ +8 ms] d:\mokhin\sdk\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev d:\mokhin\sdk\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server.dart.snapshot --sdk-root d:\mokhin\sdk\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill C:\Users\mokhin\AppData\Local\Temp\flutter_tools.ad8969f8\flutter_tool.9c2d3537\app.dill --packages D:\mokhin\projects\go_router_issue\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build\c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --verbosity=error --enable-experiment=alternative-invalidation-strategy [ +43 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project [ +121 ms] Exit code 0 from: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project [ ] [ { "instanceId": "f3bbc62f", "installDate": "2022-02-08T05:49:42Z", "installationName": "VisualStudio/17.3.5+32922.545", "installationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community", "installationVersion": "17.3.32922.545", "productId": "Microsoft.VisualStudio.Product.Community", "productPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\devenv.exe", "state": 4294967295, "isComplete": true, "isLaunchable": true, "isPrerelease": false, "isRebootRequired": false, "displayName": "Visual Studio Community 2022", "description": "╨Ь╨╛╤Й╨╜╨░╤П ╨╕╨╜╤В╨╡╨│╤А╨╕╤А╨╛╨▓╨░╨╜╨╜╨░╤П ╤Б╤А╨╡╨┤╨░ ╤А╨░╨╖╤А╨░╨▒╨╛╤В╨║╨╕, ╨▒╨╡╤Б╨┐╨╗╨░╤В╨╜╨░╤П ╨┤╨╗╤П ╤Б╤В╤Г╨┤╨╡╨╜╤В╨╛╨▓, ╤Г╤З╨░╤Б╤В╨╜╨╕╨║╨╛╨▓ ╨┐╤А╨╛╨╡╨║╤В╨╛╨▓ ╤Б ╨╛╤В╨║╤А╤Л╤В╤Л╨╝ ╨║╨╛╨┤╨╛╨╝ ╨╕ ╨╛╤В╨┤╨╡╨╗╤М╨╜╤Л╤Е ╨┐╨╛╨╗╤М╨╖╨╛╨▓╨░╤В╨╡╨╗╨╡╨╣.", "channelId": "VisualStudio.17.Release", "channelUri": "https://aka.ms/vs/17/release/channel", "enginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service", "installedChannelId": "VisualStudio.17.Release", "installedChannelUri": "https://aka.ms/vs/17/release/channel", "releaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.3#17.3.5", "thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=661288", "updateDate": "2022-10-05T10:49:52.3991273Z", "catalog": { "buildBranch": "d17.3", "buildVersion": "17.3.32922.545", "id": "VisualStudio/17.3.5+32922.545", "localBuild": "build-lab", "manifestName": "VisualStudio", "manifestType": "installer", "productDisplayVersion": "17.3.5", "productLine": "Dev17", "productLineVersion": "2022", "productMilestone": "RTW", "productMilestoneIsPreRelease": "False", "productName": "Visual Studio", "productPatchVersion": "5", "productPreReleaseMilestoneSuffix": "1.0", "productSemanticVersion": "17.3.5+32922.545", "requiredEngineVersion": "3.3.2182.10694" }, "properties": { "campaignId": "2030", "channelManifestId": "VisualStudio.17.Release/17.3.5+32922.545", "nickname": "", "setupEngineFilePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe" } } ] [ +5 ms] Building Windows application... [ +32 ms] <- compile package:go_router_issue/main.dart [ +2 ms] executing: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S D:\mokhin\projects\go_router_issue\windows -B build\windows -G Visual Studio 17 2022 [ +243 ms] -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763. [ +153 ms] -- Configuring done [ +404 ms] -- Generating done [ +11 ms] -- Build files have been written to: D:/mokhin/projects/go_router_issue/build/windows [ +17 ms] executing: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe --build build\windows --config Debug --target INSTALL --verbose [ +366 ms] MSBuild version 17.3.1+2badb37d1 for .NET Framework [ +100 ms] я┐╜я┐╜я┐╜рка я┐╜я┐╜я┐╜я┐╜ 15.11.2022 13:56:21. [ +574 ms] я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\INSTALL.vcxproj" я┐╜ узля┐╜ 1 (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ ] я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\INSTALL.vcxproj" (1) я┐╜ыпоя┐╜я┐╜я┐╜я┐╜ сбоя┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\ZERO_CHECK.vcxproj" (2) я┐╜ узля┐╜ 1 (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ ] InitializeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild", так я┐╜я┐╜я┐╜ я┐╜ыло я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "AlwaysCreate". [ +66 ms] CustomBuild: [ ] я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜ я┐╜я┐╜ходя┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜ я┐╜ребя┐╜я┐╜я┐╜я┐╜. [ +62 ms] FinalizeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜ "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" удая┐╜я┐╜я┐╜я┐╜я┐╜. [ +1 ms] я┐╜я┐╜я┐╜щеня┐╜я┐╜ я┐╜ "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate". [ +1 ms] я┐╜я┐╜я┐╜рка я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\ZERO_CHECK.vcxproj" я┐╜я┐╜я┐╜я┐╜я┐╜шеня┐╜ (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ +156 ms] я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\INSTALL.vcxproj" (1) я┐╜ыпоя┐╜я┐╜я┐╜я┐╜ сбоя┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\ALL_BUILD.vcxproj" (3) я┐╜ узля┐╜ 1 (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ ] я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\ALL_BUILD.vcxproj" (3) я┐╜ыпоя┐╜я┐╜я┐╜я┐╜ сбоя┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\flutter\flutter_wrapper_app.vcxproj" (4) я┐╜ узля┐╜ 1 (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ ] я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\flutter\flutter_wrapper_app.vcxproj" (4) я┐╜ыпоя┐╜я┐╜я┐╜я┐╜ сбоя┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\flutter\flutter_assemble.vcxproj" (5) я┐╜ узля┐╜ 1 (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ ] InitializeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild", так я┐╜я┐╜я┐╜ я┐╜ыло я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "AlwaysCreate". [ +17 ms] CustomBuild: [ ] "я┐╜я┐╜я┐╜рка 'D:\mokhin\projects\go_router_issue\build\windows\CMakeFiles\96b1a83c391ba06e5a4e810a4237983d\flutter_assemble.rule' я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜ 'D:\MOKHIN\PROJECTS\GO_ROUTER_ISSUE\WINDOWS\FLUTTER\EPHEMERAL\FLUTTER_WINDOWS.DLL', я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜рмия┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜ резя┐╜я┐╜я┐╜я┐╜ сборки 'D:\mokhin\projects\go_router_issue\build\windows\CMakeFiles\37fd14cea20cf7b1611657618a5b35ab\flutter_windows.dll.rule'. я┐╜я┐╜ сборки я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜ыпоя┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜раля┐╜я┐╜я┐╜ьно". [ +201 ms] Generating D:/mokhin/projects/go_router_issue/windows/flutter/ephemeral/flutter_windows.dll, D:/mokhin/projects/go_router_issue/windows/flutter/ephemeral/flutter_export.h, D:/mokhin/projects/go_router_issue/windows/flutter/ephemeral/flutter_windows.h, D:/mokhin/projects/go_router_issue/windows/flutter/ephemeral/flutter_messenger.h, D:/mokhin/projects/go_router_issue/windows/flutter/ephemeral/flutter_plugin_registrar.h, D:/mokhin/projects/go_router_issue/windows/flutter/ephemeral/flutter_texture_registrar.h, D:/mokhin/projects/go_router_issue/windows/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc, D:/mokhin/projects/go_router_issue/windows/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc, D:/mokhin/projects/go_router_issue/windows/flutter/ephemeral/cpp_client_wrapper/plugin_registrar.cc, D:/mokhin/projects/go_router_issue/windows/flutter/ephemeral/cpp_client_wrapper/flutter_engine.cc, D:/mokhin/projects/go_router_issue/windows/flutter/ephemeral/cpp_client_wrapper/flutter_view_controller.cc, _phony_ [+3038 ms] [ +120 ms] executing: [d:\mokhin\sdk\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +214 ms] [ +260 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ ] 52b3dc25f6471c27b2144594abb11c741cb88f57 [ +1 ms] [ +1 ms] executing: [d:\mokhin\sdk\flutter/] git tag --points-at 52b3dc25f6471c27b2144594abb11c741cb88f57 [ +176 ms] [ +176 ms] Exit code 0 from: git tag --points-at 52b3dc25f6471c27b2144594abb11c741cb88f57 [ ] [ ] 3.3.8 [ +142 ms] [ +142 ms] executing: [d:\mokhin\sdk\flutter/] git rev-parse --abbrev-ref HEAD [ +439 ms] [ +439 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] [ ] stable [ +164 ms] [ +164 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ +1 ms] [ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +7 ms] [ +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +177 ms] [ +177 ms] executing: [d:\mokhin\sdk\flutter/] git rev-parse --abbrev-ref --symbolic @{upstream} [ +130 ms] [ +130 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream} [ ] [ ] origin/stable [ ] [ ] executing: [d:\mokhin\sdk\flutter/] git ls-remote --get-url origin [ +115 ms] [ +115 ms] Exit code 0 from: git ls-remote --get-url origin [ ] [ ] https://github.com/flutter/flutter.git [ +2 ms] [ +1 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update. [ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update. [ +4 ms] [ +4 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'PubDependencies' is not required, skipping update. [ +66 ms] [ +68 ms] Initializing file store [ +22 ms] [ +22 ms] Done initializing file store [ +62 ms] [ +62 ms] Skipping target: gen_localizations [ +20 ms] [ +19 ms] Skipping target: gen_dart_plugin_registrant [+3891 ms] [+3892 ms] Skipping target: unpack_windows [ +579 ms] [ +579 ms] kernel_snapshot: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: D:\mokhin\projects\go_router_issue\lib\main.dart} [ +15 ms] [ +13 ms] d:\mokhin\sdk\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev d:\mokhin\sdk\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server.dart.snapshot --sdk-root d:\mokhin\sdk\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --packages D:\mokhin\projects\go_router_issue\.dart_tool\package_config.json --output-dill D:\mokhin\projects\go_router_issue\.dart_tool\flutter_build\f9bef8a75e7abbcda33e1a710713b1fa\app.dill --depfile D:\mokhin\projects\go_router_issue\.dart_tool\flutter_build\f9bef8a75e7abbcda33e1a710713b1fa\kernel_snapshot.d --incremental --initialize-from-dill D:\mokhin\projects\go_router_issue\.dart_tool\flutter_build\f9bef8a75e7abbcda33e1a710713b1fa\app.dill --verbosity=error package:go_router_issue/main.dart [+1685 ms] [+1686 ms] kernel_snapshot: Complete [ +559 ms] [ +560 ms] debug_bundle_windows_assets: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: D:\mokhin\projects\go_router_issue\.dart_tool\flutter_build\f9bef8a75e7abbcda33e1a710713b1fa\app.dill} [ +452 ms] [ +452 ms] debug_bundle_windows_assets: Complete [ +224 ms] [ +224 ms] Persisting file store [ +12 ms] [ +11 ms] Done persisting file store [ +7 ms] [ +7 ms] build succeeded. [ +18 ms] [ +15 ms] "flutter assemble" took 8┬а102ms. [ +131 ms] [ +133 ms] ensureAnalyticsSent: 128ms [ +2 ms] [ +2 ms] Running shutdown hooks [ ] [ ] Shutdown hooks complete [ +1 ms] [ +1 ms] exiting with code 0 [ +136 ms] FinalizeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜ "x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild" удая┐╜я┐╜я┐╜я┐╜я┐╜. [ ] я┐╜я┐╜я┐╜щеня┐╜я┐╜ я┐╜ "x64\Debug\flutter_assemble\flutter_assemble.tlog\flutter_assemble.lastbuildstate". [ +1 ms] я┐╜я┐╜я┐╜рка я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\flutter\flutter_assemble.vcxproj" я┐╜я┐╜я┐╜я┐╜я┐╜шеня┐╜ (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ +11 ms] InitializeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "flutter_wrapper_app.dir\Debug\flutter_.B2888C36.tlog\unsuccessfulbuild", так я┐╜я┐╜я┐╜ я┐╜ыло я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "AlwaysCreate". [ +4 ms] CustomBuild: [ ] я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜ я┐╜я┐╜ходя┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜ я┐╜ребя┐╜я┐╜я┐╜я┐╜. [ +72 ms] ClCompile: [ ] я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜ я┐╜я┐╜ходя┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜ я┐╜ребя┐╜я┐╜я┐╜я┐╜. [ +34 ms] Lib: [ ] я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜ я┐╜я┐╜ходя┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜ я┐╜ребя┐╜я┐╜я┐╜я┐╜. [ +2 ms] flutter_wrapper_app.vcxproj -> D:\mokhin\projects\go_router_issue\build\windows\flutter\Debug\flutter_wrapper_app.lib [ +14 ms] FinalizeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜ "flutter_wrapper_app.dir\Debug\flutter_.B2888C36.tlog\unsuccessfulbuild" удая┐╜я┐╜я┐╜я┐╜я┐╜. [ ] я┐╜я┐╜я┐╜щеня┐╜я┐╜ я┐╜ "flutter_wrapper_app.dir\Debug\flutter_.B2888C36.tlog\flutter_wrapper_app.lastbuildstate". [ +1 ms] я┐╜я┐╜я┐╜рка я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\flutter\flutter_wrapper_app.vcxproj" я┐╜я┐╜я┐╜я┐╜я┐╜шеня┐╜ (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ +35 ms] я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\ALL_BUILD.vcxproj" (3) я┐╜ыпоя┐╜я┐╜я┐╜я┐╜ сбоя┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\flutter\flutter_wrapper_plugin.vcxproj" (6) я┐╜ узля┐╜ 1 (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ ] InitializeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "flutter_wrapper_plugin.dir\Debug\flutter_.9F33D02D.tlog\unsuccessfulbuild", так я┐╜я┐╜я┐╜ я┐╜ыло я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "AlwaysCreate". [ +2 ms] CustomBuild: [ ] я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜ я┐╜я┐╜ходя┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜ я┐╜ребя┐╜я┐╜я┐╜я┐╜. [ +11 ms] ClCompile: [ ] я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜ я┐╜я┐╜ходя┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜ я┐╜ребя┐╜я┐╜я┐╜я┐╜. [ +5 ms] Lib: [ ] я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜ я┐╜я┐╜ходя┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜ я┐╜ребя┐╜я┐╜я┐╜я┐╜. [ ] flutter_wrapper_plugin.vcxproj -> D:\mokhin\projects\go_router_issue\build\windows\flutter\Debug\flutter_wrapper_plugin.lib [ +12 ms] FinalizeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜ "flutter_wrapper_plugin.dir\Debug\flutter_.9F33D02D.tlog\unsuccessfulbuild" удая┐╜я┐╜я┐╜я┐╜я┐╜. [ ] я┐╜я┐╜я┐╜щеня┐╜я┐╜ я┐╜ "flutter_wrapper_plugin.dir\Debug\flutter_.9F33D02D.tlog\flutter_wrapper_plugin.lastbuildstate". [ ] я┐╜я┐╜я┐╜рка я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\flutter\flutter_wrapper_plugin.vcxproj" я┐╜я┐╜я┐╜я┐╜я┐╜шеня┐╜ (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ +34 ms] я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\ALL_BUILD.vcxproj" (3) я┐╜ыпоя┐╜я┐╜я┐╜я┐╜ сбоя┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\runner\go_router_issue.vcxproj" (7) я┐╜ узля┐╜ 1 (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ ] InitializeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "go_router_issue.dir\Debug\go_router_issue.tlog\unsuccessfulbuild", так я┐╜я┐╜я┐╜ я┐╜ыло я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "AlwaysCreate". [ +2 ms] CustomBuild: [ ] я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜ я┐╜я┐╜ходя┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜ я┐╜ребя┐╜я┐╜я┐╜я┐╜. [ +28 ms] ClCompile: [ ] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\CL.exe /c /ID:\mokhin\projects\go_router_issue\windows /ID:\mokhin\projects\go_router_issue\windows\flutter\ephemeral /ID:\mokhin\projects\go_router_issue\windows\flutter\ephemeral\cpp_client_wrapper\include /Zi /nologo /W4 /WX /diagnostics:column /Od /Ob0 /D _UNICODE /D UNICODE /D WIN32 /D _WINDOWS /D _HAS_EXCEPTIONS=0 /D _DEBUG /D NOMINMAX /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++17 /Fo"go_router_issue.dir\Debug\\" /Fd"go_router_issue.dir\Debug\vc143.pdb" /external:W4 /Gd /TP /wd4100 /errorReport:queue D:\mokhin\projects\go_router_issue\windows\flutter\generated_plugin_registrant.cc D:\mokhin\projects\go_router_issue\windows\runner\flutter_window.cpp [ +142 ms] generated_plugin_registrant.cc [ +662 ms] flutter_window.cpp [+1109 ms] я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜... [ +183 ms] ResourceCompile: [ ] я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜ я┐╜я┐╜ходя┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜ я┐╜ребя┐╜я┐╜я┐╜я┐╜. [ +51 ms] Link: [ ] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:"D:\mokhin\projects\go_router_issue\build\windows\runner\Debug\go_router_issue.exe" /INCREMENTAL /ILK:"go_router_issue.dir\Debug\go_router_issue.ilk" /NOLOGO ..\flutter\Debug\flutter_wrapper_app.lib D:\mokhin\projects\go_router_issue\windows\flutter\ephemeral\flutter_windows.dll.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /manifestinput:D:\mokhin\projects\go_router_issue\windows\runner\runner.exe.manifest /DEBUG /PDB:"D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/go_router_issue.pdb" /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/go_router_issue.lib" /MACHINE:X64 /machine:x64 go_router_issue.dir\Debug\Runner.res [ ] go_router_issue.dir\Debug\flutter_window.obj [ ] go_router_issue.dir\Debug\main.obj [ ] go_router_issue.dir\Debug\utils.obj [ ] go_router_issue.dir\Debug\win32_window.obj [ ] go_router_issue.dir\Debug\generated_plugin_registrant.obj [ +400 ms] go_router_issue.vcxproj -> D:\mokhin\projects\go_router_issue\build\windows\runner\Debug\go_router_issue.exe [ +9 ms] FinalizeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜ "go_router_issue.dir\Debug\go_router_issue.tlog\unsuccessfulbuild" удая┐╜я┐╜я┐╜я┐╜я┐╜. [ ] я┐╜я┐╜я┐╜щеня┐╜я┐╜ я┐╜ "go_router_issue.dir\Debug\go_router_issue.tlog\go_router_issue.lastbuildstate". [ ] я┐╜я┐╜я┐╜рка я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\runner\go_router_issue.vcxproj" я┐╜я┐╜я┐╜я┐╜я┐╜шеня┐╜ (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ +11 ms] InitializeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild", так я┐╜я┐╜я┐╜ я┐╜ыло я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "AlwaysCreate". [ +13 ms] CustomBuild: [ ] я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜ я┐╜я┐╜ходя┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜ я┐╜ребя┐╜я┐╜я┐╜я┐╜. [ +15 ms] FinalizeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜ "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" удая┐╜я┐╜я┐╜я┐╜я┐╜. [ ] я┐╜я┐╜я┐╜щеня┐╜я┐╜ я┐╜ "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate". [ ] я┐╜я┐╜я┐╜рка я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\ALL_BUILD.vcxproj" я┐╜я┐╜я┐╜я┐╜я┐╜шеня┐╜ (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ +12 ms] InitializeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild", так я┐╜я┐╜я┐╜ я┐╜ыло я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ "AlwaysCreate". [ +174 ms] PostBuildEvent: [ ] setlocal [ ] "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake [ ] if %errorlevel% neq 0 goto :cmEnd [ ] :cmEnd [ ] endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [ ] :cmErrorLevel [ ] exit /b %1 [ ] :cmDone [ ] if %errorlevel% neq 0 goto :VCEnd [ ] :VCEnd [ +145 ms] -- Install configuration: "Debug" [ +2 ms] -- Up-to-date: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/icudtl.dat [ ] -- Up-to-date: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/flutter_windows.dll [ +8 ms] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets [ +1 ms] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/AssetManifest.json [ +5 ms] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/FontManifest.json [ +1 ms] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/fonts [ ] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/fonts/MaterialIcons-Regular.otf [ +7 ms] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/kernel_blob.bin [ +115 ms] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/NOTICES.Z [ +1 ms] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/packages [ ] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons [ ] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons/assets [ +1 ms] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf [ +3 ms] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/shaders [ +1 ms] -- Installing: D:/mokhin/projects/go_router_issue/build/windows/runner/Debug/data/flutter_assets/shaders/ink_sparkle.frag [ +17 ms] FinalizeBuildStatus: [ ] я┐╜я┐╜я┐╜я┐╜ "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild" удая┐╜я┐╜я┐╜я┐╜я┐╜. [ ] я┐╜я┐╜я┐╜щеня┐╜я┐╜ я┐╜ "x64\Debug\INSTALL\INSTALL.tlog\INSTALL.lastbuildstate". [ ] я┐╜я┐╜я┐╜рка я┐╜роея┐╜я┐╜ "D:\mokhin\projects\go_router_issue\build\windows\INSTALL.vcxproj" я┐╜я┐╜я┐╜я┐╜я┐╜шеня┐╜ (целя┐╜я┐╜я┐╜ я┐╜я┐╜ъекя┐╜я┐╜ я┐╜я┐╜ умоя┐╜чаня┐╜я┐╜). [ +4 ms] я┐╜я┐╜я┐╜рка я┐╜спешно я┐╜я┐╜я┐╜я┐╜я┐╜шеня┐╜. [ ] я┐╜редя┐╜режя┐╜я┐╜я┐╜я┐╜я┐╜: 0 [ ] я┐╜шибя┐╜я┐╜: 0 [ ] я┐╜я┐╜шло я┐╜ремя┐╜я┐╜я┐╜ 00:00:16.99 [ +43 ms] Building Windows application... (completed in 18,4s) [ +321 ms] Observatory URL on device: http://127.0.0.1:59690/V-7NUYf3FZo=/ [ +3 ms] Caching compiled dill [ +44 ms] Connecting to service protocol: http://127.0.0.1:59690/V-7NUYf3FZo=/ [ +181 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:59690/V-7NUYf3FZo=/. [ +116 ms] DDS is listening at http://127.0.0.1:59693/8BR8kgiVWB8=/. [ +120 ms] Successfully connected to service protocol: http://127.0.0.1:59690/V-7NUYf3FZo=/ [ +68 ms] DevFS: Creating new filesystem on the device (null) [ +30 ms] DevFS: Created new filesystem on the device (file:///C:/Users/mokhin/AppData/Local/Temp/go_router_issue42854222/go_router_issue/) [ +3 ms] Updating assets [ +169 ms] Syncing files to device Windows... [ +1 ms] Compiling dart to kernel with 0 updated files [ +1 ms] Processing bundle. [ +2 ms] <- recompile package:go_router_issue/main.dart cea07f59-c7d6-407e-a01c-cbce218f46f7 [ +2 ms] <- cea07f59-c7d6-407e-a01c-cbce218f46f7 [ +3 ms] Bundle processing done. [ +146 ms] Updating files. [ ] DevFS: Sync finished [ +3 ms] Syncing files to device Windows... (completed in 158ms) [ +1 ms] Synced 0.0MB. [ +3 ms] <- accept [ +8 ms] Connected to _flutterView/0x1c8b33ffab0. [ +4 ms] Flutter run key commands. [ +2 ms] r Hot reload. [ ] R Hot restart. [ ] h List all available interactive commands. [ ] d Detach (terminate "flutter run" but leave application running). [ ] c Clear the screen [ ] q Quit (terminate the application on the device). [ ] Running with sound null safety [ +1 ms] An Observatory debugger and profiler on Windows is available at: http://127.0.0.1:59693/8BR8kgiVWB8=/ [ +180 ms] The Flutter DevTools debugger and profiler on Windows is available at: http://127.0.0.1:9105?uri=http://127.0.0.1:59693/8BR8kgiVWB8=/ [+8466 ms] тХРтХРтХб EXCEPTION CAUGHT BY SCHEDULER LIBRARY тХЮтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХР The following assertion was thrown during a scheduler callback: 'package:flutter/src/widgets/heroes.dart': Failed assertion: line 651 pos 12: '() { final Animation initial = initialManifest.animation; assert(initial != null); final HeroFlightDirection type = initialManifest.type; assert(type != null); switch (type) { case HeroFlightDirection.pop: return initial.value == 1.0 && initialManifest.isUserGestureTransition // During user gesture transitions, the animation controller isn't // driving the reverse transition, but should still be in a previously // completed stage with the initial value at 1.0. ? initial.status == AnimationStatus.completed : initial.status == AnimationStatus.reverse; case HeroFlightDirection.push: return initial.value == 0.0 && initial.status == AnimationStatus.forward; } }()': is not true. Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause. In either case, please report this assertion by filing a bug on GitHub: https://github.com/flutter/flutter/issues/new?template=2_bug.md When the exception was thrown, this was the stack: #2 _HeroFlight.start (package:flutter/src/widgets/heroes.dart:651:12) #3 HeroController._startHeroTransition (package:flutter/src/widgets/heroes.dart:978:60) #4 HeroController._maybeStartHeroTransition. (package:flutter/src/widgets/heroes.dart:899:11) #5 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1175:15) #6 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1113:9) #7 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1015:5) #8 _invoke (dart:ui/hooks.dart:148:13) #9 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:318:5) #10 _drawFrame (dart:ui/hooks.dart:115:31) (elided 2 frames from class _AssertionError) тХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХР [+25579 ms] Service protocol connection closed. [ ] Lost connection to device. [ +1 ms] DevFS: Deleting filesystem on the device (file:///C:/Users/mokhin/AppData/Local/Temp/go_router_issue42854222/go_router_issue/) [ +256 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed [ +6 ms] "flutter run" took 84┬а614ms. [ +151 ms] ensureAnalyticsSent: 144ms [ +2 ms] Running shutdown hooks [ ] Shutdown hooks complete [ +1 ms] exiting with code 0 ``` ``` [√] Flutter (Channel stable, 3.3.8, on Microsoft Windows [Version 10.0.17763.3532], locale ru-RU) • Flutter version 3.3.8 on channel stable at D:\mokhin\sdk\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 52b3dc25f6 (6 days ago), 2022-11-09 12:09:26 +0800 • Engine revision 857bd6b74c • Dart version 2.18.4 • DevTools version 2.15.0 [√] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at d:\mokhin\sdk\android\ • Platform android-33, build-tools 33.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe [√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.5) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.3.32922.545 • Windows 10 SDK version 10.0.19041.0 [√] Android Studio (version 2021.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840) [√] VS Code (version 1.73.1) • VS Code at C:\Users\mokhin\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.52.0 [√] Connected device (2 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.17763.3532] • Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.107 [√] HTTP Host Availability • All required HTTP hosts are available • No issues found! ```
mokhin-denis commented 1 year ago

In the other way:

  1. Re-start in debug mode
  2. Click on Go to /app/1
  3. Click back on AppBar (back to /app)
  4. Click back on AppBar again (back to / )
  5. Click Go to /app

and see an exception:

FlutterError (Scaffold.geometryOf() must only be accessed during the paint phase.
The ScaffoldGeometry is only available during the paint phase, because its value is computed during the animation and layout phases prior to painting.)

Error looks like #108363

Is it possible two issues in one sample code? Or need to open new issue?

huycozy commented 1 year ago

Hi @mokhin-denis, thanks for filing the issue. This issue is reproducible on the latest stable and master channels with provided sample code.

Exception log ``` ═╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════ The following assertion was thrown during a scheduler callback: Assertion failed: file:///Users/huynq/Documents/GitHub/flutter/packages/flutter/lib/src/widgets/heroes.dart:651:12 ../…/widgets/heroes.dart:651 () { final Animation initial = initialManifest.animation; assert(initial != null); final HeroFlightDirection type = initialManifest.type; assert(type != null); switch (type) { case HeroFlightDirection.pop: return initial.value == 1.0 && initialManifest.isUserGestureTransition // During user gesture transitions, the animation controller isn't // driving the reverse transition, but should still be in a previously // completed stage with the initial value at 1.0. ? initial.status == AnimationStatus.completed : initial.status == AnimationStatus.reverse; case HeroFlightDirection.push: return initial.value == 0.0 && initial.status == AnimationStatus.forward; } }() is not true When the exception was thrown, this was the stack: dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49 throw_ dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3 assertFailed packages/flutter/src/widgets/heroes.dart 665:76 start packages/flutter/src/widgets/heroes.dart 978:60 packages/flutter/src/widgets/heroes.dart 978:74 [_startHeroTransition] packages/flutter/src/widgets/heroes.dart 899:11 packages/flutter/src/scheduler/binding.dart 1175:15 [_invokeFrameCallback] packages/flutter/src/scheduler/binding.dart 1113:9 handleDrawFrame packages/flutter/src/scheduler/binding.dart 1015:5 [_handleDrawFrame] lib/_engine/engine/platform_dispatcher.dart 1168:13 invoke lib/_engine/engine/platform_dispatcher.dart 219:5 invokeOnDrawFrame lib/_engine/engine/initialization.dart 195:45 dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 334:14 _checkAndCall dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 339:39 dcall ════════════════════════════════════════════════════════════════════════════════════════════════════ ```
flutter doctor -v (stable and master) ```bash [✓] Flutter (Channel stable, 3.3.8, on macOS 13.0 22A380 darwin-x64, locale en-VN) • Flutter version 3.3.8 on channel stable at /Users/huynq/Documents/GitHub/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 52b3dc25f6 (23 hours ago), 2022-11-09 12:09:26 +0800 • Engine revision 857bd6b74c • Dart version 2.18.4 • DevTools version 2.15.0 [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at /Users/huynq/Library/Android/sdk • Platform android-33, build-tools 31.0.0 • ANDROID_HOME = /Users/huynq/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 14.0.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14A400 • CocoaPods version 1.11.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866) [✓] IntelliJ IDEA Community Edition (version 2022.2.2) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 70.0.5 • Dart plugin version 222.4167.21 [✓] IntelliJ IDEA Community Edition (version 2022.1.1) • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart [✓] VS Code (version 1.73.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.52.0 [✓] Connected device (3 available) • iPhone 14 Pro Max (mobile) • 332079AF-E895-4685-910E-7B1E18B0C6B8 • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator) • macOS (desktop) • macos • darwin-x64 • macOS 13.0 22A380 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.110 [✓] HTTP Host Availability • All required HTTP hosts are available • No issues found! ``` ```bash [!] Flutter (Channel master, 3.6.0-3.0.pre.48, on macOS 13.0 22A380 darwin-x64, locale en-VN) • Flutter version 3.6.0-3.0.pre.48 on channel master at /Users/huynq/Documents/GitHub/flutter_master ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path. ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path. • Upstream repository https://github.com/flutter/flutter.git • Framework revision 93c4b09e62 (15 minutes ago), 2022-11-15 18:07:50 -0800 • Engine revision baad8f2c55 • Dart version 2.19.0 (build 2.19.0-403.0.dev) • DevTools version 2.19.0 • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades. [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at /Users/huynq/Library/Android/sdk • Platform android-33, build-tools 31.0.0 • ANDROID_HOME = /Users/huynq/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 14.0.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14A400 • CocoaPods version 1.11.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866) [✓] IntelliJ IDEA Community Edition (version 2022.2.2) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 70.0.5 • Dart plugin version 222.4167.21 [✓] IntelliJ IDEA Community Edition (version 2022.1.1) • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart [✓] VS Code (version 1.73.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.52.0 [✓] Connected device (3 available) • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64 • Android 11 (API 30) • macOS (desktop) • macos • darwin-x64 • macOS 13.0 22A380 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.110 [✓] HTTP Host Availability • All required HTTP hosts are available ! Doctor found issues in 1 category. ```
huycozy commented 1 year ago

Also, I can't reproduce the issue you raised at https://github.com/flutter/flutter/issues/115358#issuecomment-1315164537. If you can reproduce it every time (the behavior is different from #108363), please file a new issue for that. Thanks!

chunhtai commented 1 year ago

looks like a framework issue

FlorianFlatscher commented 1 year ago

Are there any news on this issue? I have my tests failing due to the same problem (navigating with go_router). If not is there a way to configure the testing environment in such a way, that it ignores this exact error? The app works perfectly after all.

vondeetzen commented 1 year ago

Encountering the same issue.

~ flutter --version
Flutter 3.7.7 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2ad6cd72c0 (3 weeks ago) • 2023-03-08 09:41:59 -0800
Engine • revision 1837b5be5f
Tools • Dart 2.19.4 • DevTools 2.20.1

Let me know if I can support testing a solution.

Karookie commented 1 year ago

Same problem form me.

~ flutter --version
Flutter 3.7.8 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 90c64ed42b (8 days ago) • 2023-03-21 11:27:08 -0500
Engine • revision 9aa7816315
Tools • Dart 2.19.5 • DevTools 2.20.1

Available to test a solution if anyone found anything.

TahaTesser commented 1 year ago

After an initial investigation, it looks like this is due to unexpected behavior where hero animation is dismissed on push. Assertion expects animation to be forward here on push.

This is happening because Hero's animation is interrupted during multiple transitions and animation is dismissed on push

TahaTesser commented 1 year ago

Here I created a simpler code sample.

When you have nested routes and you navigate the sub-root of the nested route. All the pages in between are built, which trigger hero animation and if the sub-root page doesn't have a hero widget, we get this crash message.

Home with FAB First Page with FAB Sub Page without FAB
Click here to navigate This is built while navigating Land here and get FAB error

When I navigate to SubPage from Home. We can see FirstPage is never shown but built.

Log:

flutter: Home
flutter: FirstPage
flutter: SubPage
code sample ```dart import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; void main() => runApp(const MyApp()); final GoRouter router = GoRouter( routes: [ GoRoute( path: '/', builder: (BuildContext context, GoRouterState state) => const Home(), routes: [ GoRoute( path: 'first_page', builder: (BuildContext context, GoRouterState state) => const FirstPage(), routes: [ GoRoute( path: 'sub_page', builder: (BuildContext context, GoRouterState state) => const SubPage(), ), ], ), GoRoute( path: 'second_page', builder: (BuildContext context, GoRouterState state) => const SecondPage(), ), ], ), ], ); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp.router( debugShowCheckedModeBanner: false, theme: ThemeData(useMaterial3: true), routeInformationProvider: router.routeInformationProvider, routeInformationParser: router.routeInformationParser, routerDelegate: router.routerDelegate, ); } } class Home extends StatelessWidget { const Home({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Home'), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ ElevatedButton( onPressed: () => context.go('/first_page'), child: const Text('Go to /first_page'), ), ElevatedButton( onPressed: () => context.go('/first_page/sub_page'), child: const Text('Go to /first_page/sub_page'), ), ElevatedButton( onPressed: () => context.go('/second_page'), child: const Text('Go to /second_page'), ), ], ), ), floatingActionButton: FloatingActionButton( heroTag: 'fab', onPressed: () {}, child: const Icon(Icons.add), ), ); } } class FirstPage extends StatelessWidget { const FirstPage({ super.key, }); @override Widget build(BuildContext context) { print('FirstPage'); return Scaffold( appBar: AppBar( title: const Text('First Page'), ), floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat, floatingActionButton: FloatingActionButton( heroTag: 'fab', onPressed: () {}, child: const Icon(Icons.add), ), ); } } class SecondPage extends StatelessWidget { const SecondPage({ super.key, }); @override Widget build(BuildContext context) { print('SecondPage'); return Scaffold( appBar: AppBar( title: const Text('Second Page'), ), floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat, floatingActionButton: FloatingActionButton( heroTag: 'fab', onPressed: () {}, child: const Icon(Icons.add), ), ); } } class SubPage extends StatelessWidget { const SubPage({super.key}); @override Widget build(BuildContext context) { print('SubPage'); return Scaffold( appBar: AppBar( title: const Text('SubPage'), ), ); } } ```
TahaTesser commented 1 year ago

cc: @chunhtai Is it expected for nested route pages to build even tho they're not on the screen?

hashirshoaeb commented 1 year ago

@TahaTesser Any fix or workaround for this?

TahaTesser commented 1 year ago

@TahaTesser Any fix or workaround for this?

None from me at the moment, this behavior isn't replicable for me without using go_router.

When you have nested routes and you navigate the sub-root of the nested route. All the pages in between are built, which trigger hero animation and if the sub-root page doesn't have a hero widget, we get this crash message.

chunhtai commented 1 year ago

I think this is due to multiple route with the same hero are push onto the screen at the same time. This is a known issue, I am currently working on a refactor of HeroController to solve all these issue once and for all, the (WIP)design doc is here https://docs.google.com/document/d/17EG-Sgp7kHVetX-odJ5jrgnpBWj2lx097sYtrSP5xno/edit?resourcekey=0-B8Jaq82Z6qeCG6Re4qcH_Q

lukaszciastko commented 10 months ago

Hi, is there any update on this issue? I just moved to go_router in one of my apps, and I'm getting this error all the time. I believe this is due to the fact that I have a single Scaffold with a FAB?

chunhtai commented 10 months ago

I am still actively working on the design. Right now the latest proposal is frame driven hero https://docs.google.com/document/d/1JZVqykFjhDXcJyj_Ep5gfTmF-Eu4pQXXNRcLCN04tls/edit?pli=1#heading=h.9c96ii8hkbp7

pchasco commented 7 months ago

I also have the same issue using go_router and scaffold with FAB. The issue occurs when pushing ModalBottomSheetRoute.

Aturex1 commented 5 months ago

Got the same issue here, but the problem was a Snackbar. Solved this by removing current Snackbar to avoid this issue.

If you have problems with FABs, you could show a SizedBox instead of the FAB when a new route is pushed (as a workaround). E. g.:

bool _routePush = false;

/* somewhere in the code: 
onTap(
    () {
        setState(() => _routePush = true));
        context.go('/myRoute');
    } 
)
*/

_routePush ? SizedBox() : FloatingActionButton()
daddowzoubair commented 4 months ago

Same problem to me , anyone fixed it ?

flutter-triage-bot[bot] commented 2 weeks ago

This issue is assigned to @chunhtai but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

adonisRodxander commented 1 week ago

@chunhtai sorry for the tag....any update on this issue? As @Aturex1 mentions, in my case, the error is being caused by the snackbar, I tried to show them using the addPostFrameCallBack, but the same error occurs.

In his case he deleted it, but I want to keep it.

chunhtai commented 1 week ago

I haven't had time to come back to this issue yet. I will reopen this https://github.com/flutter/flutter/pull/140675 when i got time

LukeStanyer commented 2 days ago

Workaround that worked for me.

FloatingActionButton(
          heroTag: null,