swipe_up_menu 0.1.3 swipe_up_menu: ^0.1.3 copied to clipboard
A side menu who appears when you swipe up or down in side of the screen to full screen apps.
Swipe Up Menu #
A Flutter package to create a Swipe Menu who appears when slide on the right side of screen.
Basic Usage #
SwipeUpMenu(
body: <Widget>[
Scaffold(appBar: AppBar(title: Text("Page 1"), centerTitle: true), backgroundColor: Colors.blue),
Scaffold(appBar: AppBar(title: Text("Page 2"), centerTitle: true), backgroundColor: Colors.yellow),
],
items: <SwipeUpMenuItem>[
SwipeUpMenuItem(title: Text("Menu 1"), icon: Icon(Icons.home, color: Colors.white), backgroundColor: Colors.blue),
SwipeUpMenuItem(title: Text("Menu 2"), icon: Icon(Icons.mail, color: Colors.white), backgroundColor: Colors.yellow),
],
startIndex: 0,
onChange: (index){},
animationDuration: Duration(milliseconds: 500)
)
Options #
Property | Type | Description | Default |
---|---|---|---|
required body |
List | The list of body of your App | - |
required items |
List | The list of items to show in menu | - |
startIndex | Integer | The start index of menus | 0 |
onChange | Function | The function who return a index when it change | null |
animationDuration | Duration | The duration of animation | Duration(milliseconds:500) |