Browse Source

neon: drawer remove TabBar remains

pull/456/head
Nikolas Rimikis 1 year ago
parent
commit
8518e934f2
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 16
      packages/neon/neon/lib/src/widgets/drawer.dart

16
packages/neon/neon/lib/src/widgets/drawer.dart

@ -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) {

Loading…
Cancel
Save