Skip to content

rod90ad/swipe_up_menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swipe Up Menu

Pub Pull Requests are welcome Pull Requests are welcome Codemagic build status

A Flutter package to create a Swipe Menu who appears when slide on the right side of screen.

Showcase

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published