I'm a software engineer at PayPal in Chicago, IL ๐
- ๐ญ Iโm currently working on the Custom navigation bar
- ๐ฌ Ask me about Flutter, Dart and Android.
- ๐ Pronouns: he/him/his
- โก Fun fact: I love playing Dota2.
A custom navigation bar with bubble click effect in Flutter
License: MIT License
I'm a software engineer at PayPal in Chicago, IL ๐
When I remove the title property (CustomNavigationBarItem) on iphone 11, there is a space above it. but no problem on iphone 7 plus.
But if I set it to Title('') the problem goes away. This time the problem is on iphone 7.
Code:
@override
Widget build(BuildContext context) {
return KeyboardDismissOnTap(
child: Scaffold(
bottomNavigationBar: MyBottomNavigationBar(),
body: pages[_selectedIndex],
),
);
}
Widget MyBottomNavigationBar() {
return CustomNavigationBar(
elevation: 5,
bubbleCurve: Curves.linear,
iconSize: 28.0,
selectedColor:
Theme.of(context).bottomNavigationBarTheme.selectedItemColor ??
Colors.black,
strokeColor: Color(0x30040307),
unSelectedColor:
Theme.of(context).bottomNavigationBarTheme.unselectedItemColor ??
Colors.black38,
backgroundColor:
Theme.of(context).bottomNavigationBarTheme.backgroundColor ??
Colors.white,
borderRadius: Radius.circular(10.0),
items: [
CustomNavigationBarItem(
icon: Icon(LineIcons.home),
title: Text(""),
),
CustomNavigationBarItem(
icon: Icon(LineIcons.search),
title: Text(""),
),
CustomNavigationBarItem(
icon: Icon(LineIcons.plusCircle),
// title: Text(""),
),
CustomNavigationBarItem(
icon: Icon(LineIcons.bell),
// title: Text(""),
),
CustomNavigationBarItem(
icon: Icon(LineIcons.userCircle),
// title: Text(""),
),
],
currentIndex: _selectedIndex,
onTap: (index) {
setState(() {
_selectedIndex = index;
});
},
);
}
return Container(
color: themeData.settingsListBackground,
width: MediaQuery.of(context).size.width,
alignment: Alignment.center,
child: ConstrainedBox(
constraints: BoxConstraints(maxWidth: 810),
child: SettingsTheme(
themeData: themeData,
platform: platform,
child: ListView.builder(
physics: physics,
controller: xxxxxxxxx,
shrinkWrap: shrinkWrap,
itemCount: sections.length,
padding: contentPadding ?? calculateDefaultPadding(platform),
itemBuilder: (BuildContext context, int index) {
return sections[index];
},
),
),
),
);
Hi , great job but i want to use svg with SvgPicture rather than IconData. I don't know if is possible to use both of them.
Thanks
I want to use elevation but it doesn't work for me. I tried on emulator and real device but no results. how can i use ? Thank you
I think there is a minor bug when disposing the widget.
I paste here the log if you want to have a look.
I/flutter ( 1324): โโโก EXCEPTION CAUGHT BY WIDGETS LIBRARY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter ( 1324): The following assertion was thrown while finalizing the widget tree:
I/flutter ( 1324): _CustomNavigationBarState#ce1da(tickers: tracking 1 ticker) was disposed with an active Ticker.
I/flutter ( 1324): _CustomNavigationBarState created a Ticker via its TickerProviderStateMixin, but at the time
I/flutter ( 1324): dispose() was called on the mixin, that Ticker was still active. All Tickers must be disposed before
I/flutter ( 1324): calling super.dispose().
I/flutter ( 1324): Tickers used by AnimationControllers should be disposed by calling dispose() on the
I/flutter ( 1324): AnimationController itself. Otherwise, the ticker will leak.
I/flutter ( 1324): The offending ticker was:
I/flutter ( 1324): _WidgetTicker(created by _CustomNavigationBarState#ce1da(tickers: tracking 1 ticker))
I/flutter ( 1324): The stack trace when the _WidgetTicker was actually created was:
I/flutter ( 1324): #0 new Ticker.<anonymous closure> (package:flutter/src/scheduler/ticker.dart:67:40)
I/flutter ( 1324): #1 new Ticker (package:flutter/src/scheduler/ticker.dart:69:6)
I/flutter ( 1324): #2 new _WidgetTicker (package:flutter/src/widgets/ticker_provider.dart:271:81)
I/flutter ( 1324): #3 TickerProviderStateMixin.createTicker
I/flutter ( 1324): (package:flutter/src/widgets/ticker_provider.dart:202:34)
I/flutter ( 1324): #4 new AnimationController (package:flutter/src/animation/animation_controller.dart:247:21)
I/flutter ( 1324): #5 _CustomNavigationBarState._startScale
I/flutter ( 1324): (package:custom_navigation_bar/src/custome_navigation_bar.dart:207:24)
I/flutter ( 1324): #6 _CustomNavigationBarState.didUpdateWidget
I/flutter ( 1324): (package:custom_navigation_bar/src/custome_navigation_bar.dart:184:7)
I/flutter ( 1324): #7 StatefulElement.update (package:flutter/src/widgets/framework.dart:4761:57)
I/flutter ( 1324): #8 Element.updateChild (package:flutter/src/widgets/framework.dart:3350:15)
I/flutter ( 1324): #9 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5596:32)
I/flutter ( 1324): #10 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6243:17)
I/flutter ( 1324): #11 Element.updateChild (package:flutter/src/widgets/framework.dart:3350:15)
I/flutter ( 1324): #12 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4599:16)
I/flutter ( 1324): #13 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4746:11)
I/flutter ( 1324): #14 Element.rebuild (package:flutter/src/widgets/framework.dart:4267:5)
I/flutter ( 1324): #15 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2582:33)
I/flutter ( 1324): #16 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:875:21)
I/flutter ( 1324): #17 RendererBinding._handlePersistentFrameCallback
I/flutter ( 1324): (package:flutter/src/rendering/binding.dart:328:5)
I/flutter ( 1324): #18 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
I/flutter ( 1324): #19 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1082:9)
I/flutter ( 1324): #20 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:998:5)
I/flutter ( 1324): #24 _invoke (dart:ui/hooks.dart:163:10)
I/flutter ( 1324): #25 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:259:5)
I/flutter ( 1324): #26 _drawFrame (dart:ui/hooks.dart:126:31)
I/flutter ( 1324): (elided 3 frames from dart:async)
I/flutter ( 1324):
I/flutter ( 1324): When the exception was thrown, this was the stack:
I/flutter ( 1324): #0 TickerProviderStateMixin.dispose.<anonymous closure> (package:flutter/src/widgets/ticker_provider.dart:219:13)
I/flutter ( 1324): #1 TickerProviderStateMixin.dispose (package:flutter/src/widgets/ticker_provider.dart:237:6)
I/flutter ( 1324): #2 _CustomNavigationBarState.dispose (package:custom_navigation_bar/src/custome_navigation_bar.dart:175:11)
I/flutter ( 1324): #3 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4800:11)
I/flutter ( 1324): #4 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1847:13)
I/flutter ( 1324): #5 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #6 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6185:16)
I/flutter ( 1324): #7 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #8 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #9 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #10 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #11 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #12 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #13 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #14 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #15 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6185:16)
I/flutter ( 1324): #16 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #17 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #18 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #19 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #20 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #21 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #22 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #23 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #24 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #25 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #26 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #27 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #28 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #29 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #30 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #31 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #32 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #33 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #34 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #35 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #36 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #37 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #38 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #39 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #40 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #41 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #42 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #43 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #44 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #45 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #46 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #47 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #48 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #49 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #50 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #51 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #52 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #53 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #54 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #55 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #56 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #57 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #58 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #59 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #60 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #61 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #62 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #63 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #64 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #65 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #66 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #67 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #68 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #69 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #70 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #71 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #72 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #73 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #74 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #75 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #76 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #77 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #78 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #79 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #80 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #81 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #82 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #83 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #84 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #85 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #86 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #87 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #88 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #89 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #90 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #91 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #92 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #93 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #94 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #95 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
======== Exception caught by widgets library =======================================================
The following assertion was thrown while finalizing the widget tree:
_CustomNavigationBarState#ce1da(tickers: tracking 1 ticker) was disposed with an active Ticker.
_CustomNavigationBarState created a Ticker via its TickerProviderStateMixin, but at the time dispose() was called on the mixin, that Ticker was still active. All Tickers must be disposed before calling super.dispose().
Tickers used by AnimationControllers should be disposed by calling dispose() on the AnimationController itself. Otherwise, the ticker will leak.
The offending ticker was: _WidgetTicker(created by _CustomNavigationBarState#ce1da(tickers: tracking 1 ticker))
The stack trace when the _WidgetTicker was actually created was:
#0 new Ticker.<anonymous closure> (package:flutter/src/scheduler/ticker.dart:67:40)
#1 new Ticker (package:flutter/src/scheduler/ticker.dart:69:6)
#2 new _WidgetTicker (package:flutter/src/widgets/ticker_provider.dart:271:81)
#3 TickerProviderStateMixin.createTicker (package:flutter/src/widgets/ticker_provider.dart:202:34)
#4 new AnimationController (package:flutter/src/animation/animation_controller.dart:247:21)
#5 _CustomNavigationBarState._startScale (package:custom_navigation_bar/src/custome_navigation_bar.dart:207:24)
#6 _CustomNavigationBarState.didUpdateWidget (package:custom_navigation_bar/src/custome_navigation_bar.dart:184:7)
#7 StatefulElement.update (package:flutter/src/widgets/framework.dart:4761:57)
#8 Element.updateChild (package:flutter/src/widgets/framework.dart:3350:15)
#9 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5596:32)
#10 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6243:17)
#11 Element.updateChild (package:flutter/src/widgets/framework.dart:3350:15)
#12 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4599:16)
#13 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4746:11)
#14 Element.rebuild (package:flutter/src/widgets/framework.dart:4267:5)
#15 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2582:33)
#16 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:875:21)
#17 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:328:5)
#18 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#19 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1082:9)
#20 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:998:5)
#24 _invoke (dart:ui/hooks.dart:163:10)
#25 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:259:5)
#26 _drawFrame (dart:ui/hooks.dart:126:31)
(elided 3 frames from dart:async)
When the exception was thrown, this was the stack:
#0 TickerProviderStateMixin.dispose.<anonymous closure> (package:flutter/src/widgets/ticker_provider.dart:219:13)
#1 TickerProviderStateMixin.dispose (package:flutter/src/widgets/ticker_provider.dart:237:6)
#2 _CustomNavigationBarState.dispose (package:custom_navigation_bar/src/custome_navigation_bar.dart:175:11)
#3 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4800:11)
#4 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1847:13)
...
====================================================================================================
======== Exception caught by animation library =====================================================
The following assertion was thrown while notifying listeners for AnimationController:
'package:flutter/src/widgets/framework.dart': Failed assertion: line 4188 pos 12: '_lifecycleState != _ElementLifecycle.defunct': 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 Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4188:12)
#3 State.setState (package:flutter/src/widgets/framework.dart:1108:15)
#4 _CustomNavigationBarState._startScale.<anonymous closure> (package:custom_navigation_bar/src/custome_navigation_bar.dart:223:9)
#5 AnimationLocalListenersMixin.notifyListeners (package:flutter/src/animation/listener_helpers.dart:136:19)
#6 AnimationController._tick (package:flutter/src/animation/animation_controller.dart:827:5)
...
The AnimationController notifying listeners was: AnimationController#1f056(โ 0.123)
====================================================================================================
======== Exception caught by animation library =====================================================
The following assertion was thrown while notifying listeners for AnimationController:
'package:flutter/src/widgets/framework.dart': Failed assertion: line 4188 pos 12: '_lifecycleState != _ElementLifecycle.defunct': 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 Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4188:12)
#3 State.setState (package:flutter/src/widgets/framework.dart:1108:15)
#4 _CustomNavigationBarState._startScale.<anonymous closure> (package:custom_navigation_bar/src/custome_navigation_bar.dart:223:9)
#5 AnimationLocalListenersMixin.notifyListeners (package:flutter/src/animation/listener_helpers.dart:136:19)
#6 AnimationController._tick (package:flutter/src/animation/animation_controller.dart:827:5)
...
The AnimationController notifying listeners was: AnimationController#1f056(โฎ 0.000; paused)
====================================================================================================
I/flutter ( 1324): #96 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #97 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #98 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #99 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #100 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #101 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #102 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #103 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #104 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #105 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #106 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #107 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #108 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #109 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #110 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #111 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #112 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #113 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #114 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #115 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #116 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #117 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #118 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #119 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #120 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #121 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #122 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #123 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #124 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #125 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #126 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #127 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #128 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #129 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #130 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #131 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #132 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #133 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #134 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #135 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #136 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #137 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #138 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #139 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #140 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #141 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #142 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #143 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #144 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #145 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #146 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #147 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #148 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #149 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #150 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #151 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #152 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #153 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #154 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #155 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #156 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #157 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #158 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #159 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #160 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #161 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #162 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #163 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #164 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #165 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #166 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #167 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #168 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #169 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #170 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #171 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #172 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #173 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #174 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #175 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #176 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #177 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #178 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #179 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #180 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #181 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #182 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #183 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #184 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #185 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #186 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #187 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #188 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #189 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #190 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #191 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #192 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #193 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #194 ListIterable.forEach (dart:_internal/iterable.dart:39:13)
I/flutter ( 1324): #195 _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:1856:25)
I/flutter ( 1324): #196 BuildOwner.finalizeTree.<anonymous closure> (package:flutter/src/widgets/framework.dart:2840:27)
I/flutter ( 1324): #197 BuildOwner.lockState (package:flutter/src/widgets/framework.dart:2473:15)
I/flutter ( 1324): #198 BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:2839:7)
I/flutter ( 1324): #199 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:877:19)
I/flutter ( 1324): #200 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:328:5)
I/flutter ( 1324): #201 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
I/flutter ( 1324): #202 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1082:9)
I/flutter ( 1324): #203 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:998:5)
I/flutter ( 1324): #207 _invoke (dart:ui/hooks.dart:163:10)
I/flutter ( 1324): #208 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:259:5)
I/flutter ( 1324): #209 _drawFrame (dart:ui/hooks.dart:126:31)
I/flutter ( 1324): (elided 3 frames from dart:async)
I/flutter ( 1324): โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter ( 1324): โโโก EXCEPTION CAUGHT BY WIDGETS LIBRARY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter ( 1324): The following assertion was thrown while finalizing the widget tree:
I/flutter ( 1324): _CustomNavigationBarState#ce1da(tickers: tracking 1 ticker) was disposed with an active Ticker.
I/flutter ( 1324): _CustomNavigationBarState created a Ticker via its TickerProviderStateMixin, but at the time
I/flutter ( 1324): dispose() was called on the mixin, that Ticker was still active. All Tickers must be disposed before
I/flutter ( 1324): calling super.dispose().
I/flutter ( 1324): Tickers used by AnimationControllers should be disposed by calling dispose() on the
I/flutter ( 1324): AnimationController itself. Otherwise, the ticker will leak.
I/flutter ( 1324): The offending ticker was:
I/flutter ( 1324): _WidgetTicker(created by _CustomNavigationBarState#ce1da(tickers: tracking 1 ticker))
I/flutter ( 1324): The stack trace when the _WidgetTicker was actually created was:
I/flutter ( 1324): #0 new Ticker.<anonymous closure> (package:flutter/src/scheduler/ticker.dart:67:40)
I/flutter ( 1324): #1 new Ticker (package:flutter/src/scheduler/ticker.dart:69:6)
I/flutter ( 1324): #2 new _WidgetTicker (package:flutter/src/widgets/ticker_provider.dart:271:81)
I/flutter ( 1324): #3 TickerProviderStateMixin.createTicker
I/flutter ( 1324): (package:flutter/src/widgets/ticker_provider.dart:202:34)
I/flutter ( 1324): #4 new AnimationController (package:flutter/src/animation/animation_controller.dart:247:21)
I/flutter ( 1324): #5 _CustomNavigationBarState._startScale
I/flutter ( 1324): (package:custom_navigation_bar/src/custome_navigation_bar.dart:207:24)
I/flutter ( 1324): #6 _CustomNavigationBarState.didUpdateWidget
I/flutter ( 1324): (package:custom_navigation_bar/src/custome_navigation_bar.dart:184:7)
I/flutter ( 1324): #7 StatefulElement.update (package:flutter/src/widgets/framework.dart:4761:57)
I/flutter ( 1324): #8 Element.updateChild (package:flutter/src/widgets/framework.dart:3350:15)
I/flutter ( 1324): #9 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5596:32)
I/flutter ( 1324): #10 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6243:17)
I/flutter ( 1324): #11 Element.updateChild (package:flutter/src/widgets/framework.dart:3350:15)
I/flutter ( 1324): #12 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4599:16)
I/flutter ( 1324): #13 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4746:11)
I/flutter ( 1324): #14 Element.rebuild (package:flutter/src/widgets/framework.dart:4267:5)
I/flutter ( 1324): #15 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2582:33)
I/flutter ( 1324): #16 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:875:21)
I/flutter ( 1324): #17 RendererBinding._handlePersistentFrameCallback
I/flutter ( 1324): (package:flutter/src/rendering/binding.dart:328:5)
I/flutter ( 1324): #18 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
I/flutter ( 1324): #19 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1082:9)
I/flutter ( 1324): #20 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:998:5)
I/flutter ( 1324): #24 _invoke (dart:ui/hooks.dart:163:10)
I/flutter ( 1324): #25 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:259:5)
I/flutter ( 1324): #26 _drawFrame (dart:ui/hooks.dart:126:31)
I/flutter ( 1324): (elided 3 frames from dart:async)
I/flutter ( 1324):
I/flutter ( 1324): When the exception was thrown, this was the stack:
I/flutter ( 1324): #0 TickerProviderStateMixin.dispose.<anonymous closure> (package:flutter/src/widgets/ticker_provider.dart:219:13)
I/flutter ( 1324): #1 TickerProviderStateMixin.dispose (package:flutter/src/widgets/ticker_provider.dart:237:6)
I/flutter ( 1324): #2 _CustomNavigationBarState.dispose (package:custom_navigation_bar/src/custome_navigation_bar.dart:175:11)
I/flutter ( 1324): #3 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4800:11)
I/flutter ( 1324): #4 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1847:13)
I/flutter ( 1324): #5 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #6 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6185:16)
I/flutter ( 1324): #7 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #8 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #9 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #10 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #11 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #12 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #13 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #14 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #15 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6185:16)
I/flutter ( 1324): #16 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #17 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #18 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #19 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #20 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #21 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #22 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #23 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #24 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #25 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #26 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #27 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #28 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #29 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #30 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #31 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #32 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #33 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #34 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #35 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #36 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #37 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #38 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #39 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #40 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #41 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #42 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #43 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #44 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #45 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #46 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #47 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #48 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #49 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #50 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #51 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #52 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #53 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #54 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #55 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #56 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #57 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #58 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #59 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #60 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #61 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #62 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #63 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #64 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #65 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #66 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #67 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #68 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #69 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #70 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #71 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #72 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #73 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #74 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #75 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #76 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #77 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #78 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #79 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #80 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #81 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #82 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #83 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #84 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #85 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #86 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #87 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #88 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #89 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #90 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #91 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #92 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #93 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #94 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #95 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #96 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #97 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #98 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #99 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #100 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #101 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #102 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #103 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #104 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #105 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #106 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #107 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #108 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #109 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #110 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #111 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #112 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #113 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #114 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #115 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #116 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #117 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #118 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #119 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #120 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #121 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #122 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #123 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #124 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #125 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #126 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #127 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #128 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #129 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #130 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #131 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #132 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #133 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #134 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #135 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #136 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #137 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #138 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #139 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #140 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #141 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #142 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #143 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #144 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #145 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #146 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #147 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #148 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #149 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #150 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #151 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #152 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #153 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #154 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #155 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #156 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #157 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #158 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #159 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #160 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #161 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #162 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #163 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #164 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #165 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #166 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #167 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #168 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #169 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #170 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #171 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #172 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #173 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #174 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #175 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #176 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #177 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #178 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #179 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #180 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #181 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #182 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #183 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6070:14)
I/flutter ( 1324): #184 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #185 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #186 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #187 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #188 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #189 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #190 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #191 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1845:7)
I/flutter ( 1324): #192 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4628:14)
I/flutter ( 1324): #193 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1843:13)
I/flutter ( 1324): #194 ListIterable.forEach (dart:_internal/iterable.dart:39:13)
I/flutter ( 1324): #195 _InactiveElements._unmountAll (package:flutter/src/widgets/framework.dart:1856:25)
I/flutter ( 1324): #196 BuildOwner.finalizeTree.<anonymous closure> (package:flutter/src/widgets/framework.dart:2840:27)
I/flutter ( 1324): #197 BuildOwner.lockState (package:flutter/src/widgets/framework.dart:2473:15)
I/flutter ( 1324): #198 BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:2839:7)
I/flutter ( 1324): #199 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:877:19)
I/flutter ( 1324): #200 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:328:5)
I/flutter ( 1324): #201 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
I/flutter ( 1324): #202 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1082:9)
I/flutter ( 1324): #203 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:998:5)
I/flutter ( 1324): #207 _invoke (dart:ui/hooks.dart:163:10)
I/flutter ( 1324): #208 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:259:5)
I/flutter ( 1324): #209 _drawFrame (dart:ui/hooks.dart:126:31)
I/flutter ( 1324): (elided 3 frames from dart:async)
I/flutter ( 1324): โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter ( 1324): โโโก EXCEPTION CAUGHT BY ANIMATION LIBRARY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter ( 1324): The following assertion was thrown while notifying listeners for AnimationController:
I/flutter ( 1324): 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4188 pos 12: '_lifecycleState
I/flutter ( 1324): != _ElementLifecycle.defunct': is not true.
I/flutter ( 1324):
I/flutter ( 1324): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 1324): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 1324): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 1324): https://github.com/flutter/flutter/issues/new?template=2_bug.md
I/flutter ( 1324):
I/flutter ( 1324): When the exception was thrown, this was the stack:
I/flutter ( 1324): #2 Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4188:12)
I/flutter ( 1324): #3 State.setState (package:flutter/src/widgets/framework.dart:1108:15)
I/flutter ( 1324): #4 _CustomNavigationBarState._startScale.<anonymous closure> (package:custom_navigation_bar/src/custome_navigation_bar.dart:223:9)
I/flutter ( 1324): #5 AnimationLocalListenersMixin.notifyListeners (package:flutter/src/animation/listener_helpers.dart:136:19)
I/flutter ( 1324): #6 AnimationController._tick (package:flutter/src/animation/animation_controller.dart:827:5)
I/flutter ( 1324): #7 Ticker._tick (package:flutter/src/scheduler/ticker.dart:238:12)
I/flutter ( 1324): #8 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
I/flutter ( 1324): #9 SchedulerBinding.handleBeginFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:1058:11)
I/flutter ( 1324): #10 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:397:8)
I/flutter ( 1324): #11 SchedulerBinding.handleBeginFrame (package:flutter/src/scheduler/binding.dart:1056:17)
I/flutter ( 1324): #12 SchedulerBinding._handleBeginFrame (package:flutter/src/scheduler/binding.dart:977:5)
I/flutter ( 1324): #16 _invoke1 (dart:ui/hooks.dart:182:10)
I/flutter ( 1324): #17 PlatformDispatcher._beginFrame (dart:ui/platform_dispatcher.dart:237:5)
I/flutter ( 1324): #18 _beginFrame (dart:ui/hooks.dart:114:31)
I/flutter ( 1324): (elided 5 frames from class _AssertionError and dart:async)
I/flutter ( 1324):
I/flutter ( 1324): The AnimationController notifying listeners was:
I/flutter ( 1324): AnimationController#1f056(โ 0.123)
I/flutter ( 1324): โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter ( 1324): โโโก EXCEPTION CAUGHT BY ANIMATION LIBRARY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter ( 1324): The following assertion was thrown while notifying listeners for AnimationController:
I/flutter ( 1324): 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4188 pos 12: '_lifecycleState
I/flutter ( 1324): != _ElementLifecycle.defunct': is not true.
I/flutter ( 1324):
I/flutter ( 1324): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 1324): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 1324): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 1324): https://github.com/flutter/flutter/issues/new?template=2_bug.md
I/flutter ( 1324):
I/flutter ( 1324): When the exception was thrown, this was the stack:
I/flutter ( 1324): #2 Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4188:12)
I/flutter ( 1324): #3 State.setState (package:flutter/src/widgets/framework.dart:1108:15)
I/flutter ( 1324): #4 _CustomNavigationBarState._startScale.<anonymous closure> (package:custom_navigation_bar/src/custome_navigation_bar.dart:223:9)
I/flutter ( 1324): #5 AnimationLocalListenersMixin.notifyListeners (package:flutter/src/animation/listener_helpers.dart:136:19)
I/flutter ( 1324): #6 AnimationController._tick (package:flutter/src/animation/animation_controller.dart:827:5)
I/flutter ( 1324): #7 Ticker._tick (package:flutter/src/scheduler/ticker.dart:238:12)
I/flutter ( 1324): #8 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
I/flutter ( 1324): #9 SchedulerBinding.handleBeginFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:1058:11)
I/flutter ( 1324): #10 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:397:8)
I/flutter ( 1324): #11 SchedulerBinding.handleBeginFrame (package:flutter/src/scheduler/binding.dart:1056:17)
I/flutter ( 1324): #12 SchedulerBinding._handleBeginFrame (package:flutter/src/scheduler/binding.dart:977:5)
I/flutter ( 1324): #16 _invoke1 (dart:ui/hooks.dart:182:10)
I/flutter ( 1324): #17 PlatformDispatcher._beginFrame (dart:ui/platform_dispatcher.dart:237:5)
I/flutter ( 1324): #18 _beginFrame (dart:ui/hooks.dart:114:31)
I/flutter ( 1324): (elided 5 frames from class _AssertionError and dart:async)
I/flutter ( 1324):
I/flutter ( 1324): The AnimationController notifying listeners was:
I/flutter ( 1324): AnimationController#1f056(โ 0.123)
I/flutter ( 1324): โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter ( 1324): โโโก EXCEPTION CAUGHT BY ANIMATION LIBRARY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter ( 1324): The following assertion was thrown while notifying listeners for AnimationController:
I/flutter ( 1324): 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4188 pos 12: '_lifecycleState
I/flutter ( 1324): != _ElementLifecycle.defunct': is not true.
I/flutter ( 1324):
I/flutter ( 1324): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 1324): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 1324): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 1324): https://github.com/flutter/flutter/issues/new?template=2_bug.md
I/flutter ( 1324):
I/flutter ( 1324): When the exception was thrown, this was the stack:
I/flutter ( 1324): #2 Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4188:12)
I/flutter ( 1324): #3 State.setState (package:flutter/src/widgets/framework.dart:1108:15)
I/flutter ( 1324): #4 _CustomNavigationBarState._startScale.<anonymous closure> (package:custom_navigation_bar/src/custome_navigation_bar.dart:223:9)
I/flutter ( 1324): #5 AnimationLocalListenersMixin.notifyListeners (package:flutter/src/animation/listener_helpers.dart:136:19)
I/flutter ( 1324): #6 AnimationController._tick (package:flutter/src/animation/animation_controller.dart:827:5)
I/flutter ( 1324): #7 Ticker._tick (package:flutter/src/scheduler/ticker.dart:238:12)
I/flutter ( 1324): #8 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
I/flutter ( 1324): #9 SchedulerBinding.handleBeginFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:1058:11)
I/flutter ( 1324): #10 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:397:8)
I/flutter ( 1324): #11 SchedulerBinding.handleBeginFrame (package:flutter/src/scheduler/binding.dart:1056:17)
I/flutter ( 1324): #12 SchedulerBinding._handleBeginFrame (package:flutter/src/scheduler/binding.dart:977:5)
I/flutter ( 1324): #16 _invoke1 (dart:ui/hooks.dart:182:10)
I/flutter ( 1324): #17 PlatformDispatcher._beginFrame (dart:ui/platform_dispatcher.dart:237:5)
I/flutter ( 1324): #18 _beginFrame (dart:ui/hooks.dart:114:31)
I/flutter ( 1324): (elided 5 frames from class _AssertionError and dart:async)
I/flutter ( 1324):
I/flutter ( 1324): The AnimationController notifying listeners was:
I/flutter ( 1324): AnimationController#1f056(โฎ 0.000; paused)
I/flutter ( 1324): โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter ( 1324): โโโก EXCEPTION CAUGHT BY ANIMATION LIBRARY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
I/flutter ( 1324): The following assertion was thrown while notifying listeners for AnimationController:
I/flutter ( 1324): 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4188 pos 12: '_lifecycleState
I/flutter ( 1324): != _ElementLifecycle.defunct': is not true.
I/flutter ( 1324):
I/flutter ( 1324): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 1324): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 1324): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 1324): https://github.com/flutter/flutter/issues/new?template=2_bug.md
I/flutter ( 1324):
I/flutter ( 1324): When the exception was thrown, this was the stack:
I/flutter ( 1324): #2 Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4188:12)
I/flutter ( 1324): #3 State.setState (package:flutter/src/widgets/framework.dart:1108:15)
I/flutter ( 1324): #4 _CustomNavigationBarState._startScale.<anonymous closure> (package:custom_navigation_bar/src/custome_navigation_bar.dart:223:9)
I/flutter ( 1324): #5 AnimationLocalListenersMixin.notifyListeners (package:flutter/src/animation/listener_helpers.dart:136:19)
I/flutter ( 1324): #6 AnimationController._tick (package:flutter/src/animation/animation_controller.dart:827:5)
I/flutter ( 1324): #7 Ticker._tick (package:flutter/src/scheduler/ticker.dart:238:12)
I/flutter ( 1324): #8 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
I/flutter ( 1324): #9 SchedulerBinding.handleBeginFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:1058:11)
I/flutter ( 1324): #10 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:397:8)
I/flutter ( 1324): #11 SchedulerBinding.handleBeginFrame (package:flutter/src/scheduler/binding.dart:1056:17)
I/flutter ( 1324): #12 SchedulerBinding._handleBeginFrame (package:flutter/src/scheduler/binding.dart:977:5)
I/flutter ( 1324): #16 _invoke1 (dart:ui/hooks.dart:182:10)
I/flutter ( 1324): #17 PlatformDispatcher._beginFrame (dart:ui/platform_dispatcher.dart:237:5)
I/flutter ( 1324): #18 _beginFrame (dart:ui/hooks.dart:114:31)
I/flutter ( 1324): (elided 5 frames from class _AssertionError and dart:async)
I/flutter ( 1324):
I/flutter ( 1324): The AnimationController notifying listeners was:
I/flutter ( 1324): AnimationController#1f056(โฎ 0.000; paused)
I/flutter ( 1324): โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Thank you for this great package.
Feature Request
Would it be possible to increase the gesture area for each CustomNavigationBarItem ? For example the CupertinoTabScaffold 's TabBar takes on the default behaviour of not only tapping on the Icon itself, but rather tapping on the Icon and its relative surrounding.
This makes it easier for users to easily change tabs without aiming directly for the Icons or better still, expose the animations to a CupertinoTabScaffold.
Due changes in flutter_icons this:
AntDesign.getIconData('shoppingcart')
Needs to be change to:
AntDesign.shoppingcart
And this other part:
onChanged: (ThemeStyle value) { setState(() { _currentStyle = value; }); }
Doesn't compile either, it needs "ThemeStyle ?" and
ThemeStyle? _currentStyle = ThemeStyle.NotificationBadge;
Also, the package flutter_icons is not null safety so, impossible to execute the example
Hi, just wonder it's that possible add a blur effect to navbar background? that would looks nice on iOS apps.
is it possible to add swipe pages with his bar. if yes please tell how
So I have 3 NavbarItems all with a title of text. In the first one the text is longer, pushing the other 2 off center and to the side.
So instead of
---1---2---3---
its
---1----2---3--
Which seems odd since there is more than enough space for all 3 text widgets
I was wondering if it is possible to set the width of the floating navbar?
Navbar that I have now:
CustomNavigationBar( selectedColor: Color(0xFF279B40), strokeColor: Color(0xFF279B40), unSelectedColor: Colors.grey[600], backgroundColor: Colors.white, items: [ CustomNavigationBarItem( icon: Icon(Icons.notifications), title: Text("Meldingen", style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600),), ), CustomNavigationBarItem( icon: Icon(Icons.home), title: Text("Dashboard", style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600),), ), ], currentIndex: _activeIndex, onTap: (page) { _controller.animateToPage( page, duration: const Duration(milliseconds: 250), curve: Curves.fastOutSlowIn, ); }, borderRadius: Radius.circular(16.0), isFloating: true, ),
Facing Null Safety support issue for v2.12.0
. Please update the code as per requirement.
don't support null safety:
- package:custom_navigation_bar
I am getting this exception when testing my application with your navigation included. Which does not happen if I use a different one. Yet, I couldn't figure out the issue. The dispose() method is not getting called in the CostumeNavigationBarState when I debug it. Since, I am new to flutter you might have a better idea, where this comes from.
โโโก EXCEPTION CAUGHT BY WIDGETS LIBRARY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The following NoSuchMethodError was thrown while finalizing the widget tree:
The method 'dispose' was called on null.
Receiver: null
Tried calling: dispose()
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 _CustomNavigationBarState.dispose (package:custom_navigation_bar/src/custome_navigation_bar.dart:149:17)
#2 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4435:12)
#3 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1748:13)
#4 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#5 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5433:14)
#6 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#7 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#8 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5433:14)
#9 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#10 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#11 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5433:14)
#12 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#13 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#14 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4272:14)
#15 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#16 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#17 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5433:14)
#18 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#19 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#20 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5534:16)
#21 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#22 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#23 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4272:14)
#24 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#25 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#26 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4272:14)
#27 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#28 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#29 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4272:14)
#30 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#31 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#32 MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5534:16)
#33 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#34 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#35 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4272:14)
#36 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#37 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#38 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4272:14)
#39 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#40 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#41 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4272:14)
#42 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#43 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#44 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5433:14)
#45 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#46 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#47 ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4272:14)
#48 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1744:13)
#49 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:1746:7)
#50 SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5433:14)
...
(elided 28 frames from class _FakeAsync, package dart:async, package dart:async-patch, and package stack_trace)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.