gbmiranda / flutter_plus

Develop applications in Flutter more quickly and easily. Customize Containers, Buttons, Texts and TextFields in a few lines. Navigate between Screens and open BottomSheets, Dialogs and Snackbars without context from any point.
MIT License
21 stars 8 forks source link

type 'Null' is not a subtype of type 'RenderBox' in type cast #3

Closed ufukhawk closed 3 years ago

ufukhawk commented 3 years ago

Performing hot reload... Syncing files to device Android SDK built for x86 64... Reloaded 38 of 2236 libraries in 1,488ms. I/flutter ( 6650): []

======== Exception caught by scheduler library ===================================================== The following assertion was thrown during a scheduler callback: There are multiple heroes that share the same tag within a subtree.

Within each subtree for which heroes are to be animated (i.e. a PageRoute subtree), each Hero must have a unique non-null tag. In this case, multiple heroes had the following tag: 835001222520939720210324165449-450000000

Here is the subtree for one of the offending heroes: Hero tag: 835001222520939720210324165449-450000000 state: _HeroState#a0121 When the exception was thrown, this was the stack:

0 Hero._allHeroesFor.inviteHero. (package:flutter/src/widgets/heroes.dart:256:11)

1 Hero._allHeroesFor.inviteHero (package:flutter/src/widgets/heroes.dart:267:8)

2 Hero._allHeroesFor.visitor (package:flutter/src/widgets/heroes.dart:286:21)

3 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4549:14)

4 Hero._allHeroesFor.visitor (package:flutter/src/widgets/heroes.dart:301:15)

...

I/flutter ( 6650): StartDate 2021-03-24 23:59:00.000 I/flutter ( 6650): EndDate 2021-03-24 17:28:39.759717

======== Exception caught by scheduler library ===================================================== The following assertion was thrown during a scheduler callback: There are multiple heroes that share the same tag within a subtree.

Within each subtree for which heroes are to be animated (i.e. a PageRoute subtree), each Hero must have a unique non-null tag. In this case, multiple heroes had the following tag: 835001222520939720210324165449-450000000

Here is the subtree for one of the offending heroes: Hero tag: 835001222520939720210324165449-450000000 state: _HeroState#27db6 When the exception was thrown, this was the stack:

0 Hero._allHeroesFor.inviteHero. (package:flutter/src/widgets/heroes.dart:256:11)

1 Hero._allHeroesFor.inviteHero (package:flutter/src/widgets/heroes.dart:267:8)

2 Hero._allHeroesFor.visitor (package:flutter/src/widgets/heroes.dart:286:21)

3 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4549:14)

4 Hero._allHeroesFor.visitor (package:flutter/src/widgets/heroes.dart:301:15)

...

I/flutter ( 6650): [2021-03-24 17:28:42.566464 | Catcher | INFO] Setup localization lazily! I/flutter ( 6650): [2021-03-24 17:28:44.097699 | ConsoleHandler | INFO] ============================== CATCHER LOG ============================== I/flutter ( 6650): [2021-03-24 17:28:44.097988 | ConsoleHandler | INFO] Crash occured on 2021-03-24 17:28:42.579063 I/flutter ( 6650): [2021-03-24 17:28:44.098040 | ConsoleHandler | INFO] I/flutter ( 6650): [2021-03-24 17:28:44.098241 | ConsoleHandler | INFO] ------- DEVICE INFO ------- I/flutter ( 6650): [2021-03-24 17:28:44.098356 | ConsoleHandler | INFO] I/flutter ( 6650): [2021-03-24 17:28:44.098551 | ConsoleHandler | INFO] ------- APP INFO ------- I/flutter ( 6650): [2021-03-24 17:28:44.098817 | ConsoleHandler | INFO] environment: debug I/flutter ( 6650): [2021-03-24 17:28:44.098893 | ConsoleHandler | INFO] version: 1.0.6 I/flutter ( 6650): [2021-03-24 17:28:44.098947 | ConsoleHandler | INFO] appName: xxxx I/flutter ( 6650): [2021-03-24 17:28:44.099023 | ConsoleHandler | INFO] buildNumber: 7 I/flutter ( 6650): [2021-03-24 17:28:44.099389 | ConsoleHandler | INFO] packageName: com.xxx I/flutter ( 6650): [2021-03-24 17:28:44.099450 | ConsoleHandler | INFO] I/flutter ( 6650): [2021-03-24 17:28:44.099490 | ConsoleHandler | INFO] ---------- ERROR ---------- I/flutter ( 6650): [2021-03-24 17:28:44.099541 | ConsoleHandler | INFO] type 'Null' is not a subtype of type 'RenderBox' in type cast I/flutter ( 6650): [2021-03-24 17:28:44.099582 | ConsoleHandler | INFO] I/flutter ( 6650): [2021-03-24 17:28:44.101689 | ConsoleHandler | INFO] ------- STACK TRACE ------- I/flutter ( 6650): [2021-03-24 17:28:44.101888 | ConsoleHandler | INFO] #0 _ContainerPlusState._getSizes (xxxx/widgets/plus_widgets/container_plus.dart:398:67) I/flutter ( 6650): [2021-03-24 17:28:44.101974 | ConsoleHandler | INFO] #1 _ContainerPlusState._afterLayout (xxx/widgets/plus_widgets/container_plus.dart:166:5) I/flutter ( 6650): [2021-03-24 17:28:44.102010 | ConsoleHandler | INFO] #2 new Future.delayed. (dart:async/future.dart:315:39) I/flutter ( 6650): [2021-03-24 17:28:44.102042 | ConsoleHandler | INFO] #3 _rootRun (dart:async/zone.dart:1346:47) I/flutter ( 6650): [2021-03-24 17:28:44.102073 | ConsoleHandler | INFO] #4 _CustomZone.run (dart:async/zone.dart:1258:19) I/flutter ( 6650): [2021-03-24 17:28:44.102103 | ConsoleHandler | INFO] #5 _CustomZone.runGuarded (dart:async/zone.dart:1162:7) I/flutter ( 6650): [2021-03-24 17:28:44.102135 | ConsoleHandler | INFO] #6 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1202:23) I/flutter ( 6650): [2021-03-24 17:28:44.102166 | ConsoleHandler | INFO] #7 _rootRun (dart:async/zone.dart:1354:13) I/flutter ( 6650): [2021-03-24 17:28:44.102204 | ConsoleHandler | INFO] #8 _CustomZone.run (dart:async/zone.dart:1258:19) I/flutter ( 6650): [2021-03-24 17:28:44.102249 | ConsoleHandler | INFO] #9 _CustomZone.bindCallback. (dart:async/zone.dart:1186:23) I/flutter ( 6650): [2021-03-24 17:28:44.102290 | ConsoleHandler | INFO] #10 Timer._createTimer. (dart:async-patch/timer_patch.dart:18:15) I/flutter ( 6650): [2021-03-24 17:28:44.102329 | ConsoleHandler | INFO] #11 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:395:19) I/flutter ( 6650): [2021-03-24 17:28:44.102362 | ConsoleHandler | INFO] #12 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:426:5) I/flutter ( 6650): [2021-03-24 17:28:44.102392 | ConsoleHandler | INFO] #13 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12) I/flutter ( 6650): [2021-03-24 17:28:44.102444 | ConsoleHandler | INFO] I/flutter ( 6650): [2021-03-24 17:28:44.102609 | ConsoleHandler | INFO]