|
|
@ -54,13 +54,12 @@ class _NeonDrawer extends StatefulWidget { |
|
|
|
State<_NeonDrawer> createState() => __NeonDrawerState(); |
|
|
|
State<_NeonDrawer> createState() => __NeonDrawerState(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class __NeonDrawerState extends State<_NeonDrawer> with SingleTickerProviderStateMixin { |
|
|
|
class __NeonDrawerState extends State<_NeonDrawer> { |
|
|
|
late TabController _tabController; |
|
|
|
|
|
|
|
late AccountsBloc _accountsBloc; |
|
|
|
late AccountsBloc _accountsBloc; |
|
|
|
late AppsBloc _appsBloc; |
|
|
|
late AppsBloc _appsBloc; |
|
|
|
late List<AppImplementation> _apps; |
|
|
|
late List<AppImplementation> _apps; |
|
|
|
|
|
|
|
|
|
|
|
int _activeApp = 0; |
|
|
|
late int _activeApp; |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
void initState() { |
|
|
|
void initState() { |
|
|
@ -71,17 +70,6 @@ class __NeonDrawerState extends State<_NeonDrawer> with SingleTickerProviderStat |
|
|
|
|
|
|
|
|
|
|
|
_apps = widget.apps.toList(); |
|
|
|
_apps = widget.apps.toList(); |
|
|
|
_activeApp = _apps.indexWhere((final app) => app.id == _appsBloc.activeApp.valueOrNull?.id); |
|
|
|
_activeApp = _apps.indexWhere((final app) => app.id == _appsBloc.activeApp.valueOrNull?.id); |
|
|
|
|
|
|
|
|
|
|
|
_tabController = TabController( |
|
|
|
|
|
|
|
vsync: this, |
|
|
|
|
|
|
|
length: widget.apps.length, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
void dispose() { |
|
|
|
|
|
|
|
_tabController.dispose(); |
|
|
|
|
|
|
|
super.dispose(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void onAppChange(final int index) { |
|
|
|
void onAppChange(final int index) { |
|
|
|