foldable_sidebar 1.0.0

Flutter Android iOS web

An easy to use Package for adding Foldable Flutter Navigation Sidebar to your Flutter Application.

Foldable Sidebar #

An easy to implement Foldable Sidebar Navigation Drawer for Flutter Applications.

Current Features #

  • Initial Release for Foldable Navigation Sidebar

Demo #

Usage #

To Use, simply add FoldableSidebarBuilder to your Scaffold's body, as follows:

      child: Scaffold(
      body: FoldableSidebarBuilder(
                drawerBackgroundColor: Colors.deepOrange,
                drawer: CustomDrawer(closeDrawer: (){
                  setState(() {
                    drawerStatus = FDBStatus.FDB_CLOSE; // For Closing the Sidebar
                  });
                },),
                screenContents: FirstScreen(), // Your Screen Widget
                status: drawerStatus,
              ),
              floatingActionButton: FloatingActionButton(
                  backgroundColor: Colors.deepOrange,
                  child: Icon(Icons.menu,color: Colors.white,),
                  onPressed: () {
                    // To Open/Close Sidebar
                    setState(() {
                      drawerStatus = drawerStatus == FDBStatus.FDB_OPEN ? FDBStatus.FDB_CLOSE : FDBStatus.FDB_OPEN;
                    });
                  }),
            ),
           ),

Important Enums:

FSBStatus.FSB_OPEN //For Opening the Sidebar
FSBStatus.FSB_CLOSE  //For Closing the Sidebar

Roadmap #

Plans to add more customizations.

License #

MIT

110
likes
90
pub points
88%
popularity

Publisher

retroportalstudio.com

An easy to use Package for adding Foldable Flutter Navigation Sidebar to your Flutter Application.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on foldable_sidebar