Browse Source

neon: drawer remove TabBar remains

pull/441/head
Nikolas Rimikis 2 years ago
parent
commit
3fbc31791a
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 14
      packages/neon/neon/lib/src/widgets/drawer.dart

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

@ -45,8 +45,7 @@ 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;
@ -62,17 +61,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