Skip to content

Commit

Permalink
add more left side menu items to example
Browse files Browse the repository at this point in the history
  • Loading branch information
markfili committed Jan 16, 2023
1 parent 85ee839 commit 1efd4f0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 22 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,37 @@ class _MyAppState extends State<MyApp> {
children: [
SideMenu(
controller: _controller,
backgroundColor: Colors.blueGrey,
builder: (data) {
return SideMenuData(
header: const Text('Header'),
items: [
SideMenuItemDataTile(
isSelected: true,
isSelected: false,
onTap: () {},
title: 'Item 1',
hoverColor: Colors.blue,
titleStyle: const TextStyle(color: Colors.white),
icon: const Icon(Icons.home),
),
SideMenuItemDataTile(
isSelected: true,
onTap: () {},
title: 'Item 2',
icon: const Icon(Icons.table_bar),
),
SideMenuItemDataTile(
isSelected: false,
onTap: () {},
title: 'Item 3',
icon: const Icon(Icons.play_arrow),
),
SideMenuItemDataTile(
isSelected: false,
onTap: () {},
title: 'Item 4',
icon: const Icon(Icons.car_crash),
),
],
footer: const Text('Footer'),
);
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
version: 1.1.0+1

environment:
sdk: '>=2.18.1 <3.0.0'
Expand Down

0 comments on commit 1efd4f0

Please sign in to comment.