Skip to content

Commit

Permalink
🔀 Merge pull request #17 from Fedodo/dev
Browse files Browse the repository at this point in the history
🚧 Added sideMenuController
  • Loading branch information
LNA-DEV authored Jun 28, 2023
2 parents 9b86f79 + 7dd038f commit 26f18bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -20,14 +21,14 @@ class Navigation extends StatefulWidget {
final Widget? floatingActionButton;
final List<BottomNavigationBarItem> bottomNavigationBarItems;
final ScrollController scrollController;
final SideMenuController sideMenuController;

@override
State<Navigation> createState() => _NavigationState();
}

class _NavigationState extends State<Navigation> {
int currentIndex = 0;
SideMenuController sideMenuController = SideMenuController();

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -86,7 +87,7 @@ class _NavigationState extends State<Navigation> {
),
// footer: const Text('Fedodo v1.1.1'),
items: widget.sideMenuItems,
controller: sideMenuController,
controller: widget.sideMenuController,
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 26f18bf

Please sign in to comment.