diff --git a/lib/navigation.dart b/lib/navigation.dart index ed60787..3595b1e 100644 --- a/lib/navigation.dart +++ b/lib/navigation.dart @@ -8,9 +8,10 @@ class Navigation extends StatefulWidget { required this.inputScreens, required this.sideMenuItems, required this.appBarActions, - this.floatingActionButton, + required this.floatingActionButton, required this.bottomNavigationBarItems, required this.scrollController, + required this.sideMenuController, }); final String title; @@ -20,6 +21,7 @@ class Navigation extends StatefulWidget { final Widget? floatingActionButton; final List bottomNavigationBarItems; final ScrollController scrollController; + final SideMenuController sideMenuController; @override State createState() => _NavigationState(); @@ -27,7 +29,6 @@ class Navigation extends StatefulWidget { class _NavigationState extends State { int currentIndex = 0; - SideMenuController sideMenuController = SideMenuController(); @override Widget build(BuildContext context) { @@ -86,7 +87,7 @@ class _NavigationState extends State { ), // footer: const Text('Fedodo v1.1.1'), items: widget.sideMenuItems, - controller: sideMenuController, + controller: widget.sideMenuController, ), ), ), diff --git a/pubspec.yaml b/pubspec.yaml index a83d4ab..a0e12c7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: fedodo_general description: A flutter package which contains general components of the Fedodo-UIs. -version: 1.5.0 +version: 1.5.1 homepage: https://fedodo.org environment: