This is an easy to use Flutter Package for adding Fancy Foldable Sidebar to your Flutter Applications.

Overview

Foldable Sidebar

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

Current Features

  • Initial Release for Foldable Navigation Sidebar

Your Support means a lot!

Buy Me A Coffee

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

You might also like...

A UI library for easily adding audio waveforms to your apps, with several customization options

A UI library for easily adding audio waveforms to your apps, with several customization options

A UI library for easily adding audio waveforms to your apps, with several custom

Dec 11, 2022

A flutter widget to indicate loading progress. Easy to use, easy to extend

💙 👾 💫 A flutter widget to indicate loading progress. Easy to use, easy to extend

May 30, 2022

A basic demonstration for creating a Jardinains (Fancy Pong-Like) Game in Flutter

A basic demonstration for creating a Jardinains (Fancy Pong-Like) Game in Flutter

Jardinains Flutter! 🕹 Play Here - Web https://flutter-jardinains.web.app/#/ Demo Note: For optimal performance run the project in profile mode using

Nov 12, 2022

Fancy list loading effect or The Shimmer Effect in Flutter

Fancy list loading effect or The Shimmer Effect in Flutter

Shimmer Effect in Shimmer Effect is really cool placeholder effect that you can show when you are loading data in the form of a list. To do it in flut

Oct 18, 2022

Fancy OnBoarding Screen Library

Fancy OnBoarding Screen Library

👏 FancyOnBoarding A Fancy OnBoarding Screen Library for Easy and Quick Usage. Checkout the Original Author : Checkout the Original Designer : The sou

Dec 28, 2022

A fancy animated bottom navigation bar 💫.

A fancy animated bottom navigation bar 💫.

Stacky_bottom_nav_bar A fancy animated bottom navigation bar. Preview Default Light Mode Default Dark Mode ⚠️ IMPORTANT: when adding this widget don’t

Oct 23, 2022

Flutter plugin for selecting images from the Android and iOS image library, taking new pictures with the camera, and edit them before using such as rotation, cropping, adding sticker/text/filters.

Flutter plugin for selecting images from the Android and iOS image library, taking new pictures with the camera, and edit them before using such as rotation, cropping, adding sticker/text/filters.

advance_image_picker Flutter plugin for selecting multiple images from the Android and iOS image library, taking new pictures with the camera, and edi

Dec 19, 2022

Following Along with a tutorial and adding differing customization to learn Dart and Flutter

flutter_ss_portfolio A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

Nov 28, 2021
Comments
  • Does not work when Mobile app locale is RTL

    Does not work when Mobile app locale is RTL

    It worked fine just before I added easy_localization package and set the language to Hebrew which is RTL direction. whole app works fine but can not open drawer.

    opened by afzl-wtu 0
  • Inconsistent and duplicate drawers on Flutter 2.0.

    Inconsistent and duplicate drawers on Flutter 2.0.

    Recently, I've tested this package in order tu fulfull my client's requirement on its application.

    First, as you can see in the pull request, i updated the library to null-safety. Then, I put it on my project and i folder my custom drawer as follows:

    class MainLayout extends HookWidget {
      final GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>();
    
      @override
      Widget build(BuildContext context) {
        Size size = MediaQuery.of(context).size;
        return Scaffold(
          appBar: Header(),
          body: FoldableSidebarBuilder(
            drawer: SideMenu(),
            screenContents: Container(),
            status: FSBStatus.FSB_OPEN,
          ),
        );
      }
    }
    

    With my drawer as follows:

    class SideMenu extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return Container(
          child: Drawer(
            child: SafeArea(
              child: Column(
                children: <Widget>[
                  SideMenuHeader(
                    displayedUserName: 'Luis Alaguna',
                  ),
                  Expanded(
                      child: ListView(
                    padding: EdgeInsets.zero,
                    children: <Widget>[
                      ExpansionTile(
                        title: Text("Dashboad"),
                        children: <Widget>[
                          ListTile(
                            leading: Icon(
                              MdiIcons.accountGroupOutline,
                              // size: 40,
                            ),
                            title: Text('Users'),
                            onTap: () {},
                          ),
                          ListTile(
                            leading: Icon(MdiIcons.poll),
                            title: Text('Surveys'),
                            onTap: () {},
                          ),
                          ListTile(
                              leading: Icon(MdiIcons.cogs), title: Text('Setup')),
                        ],
                      ),
                      ExpansionTile(
                        title: Text('Content'),
                        children: <Widget>[
                          ListTile(
                              leading: Icon(MdiIcons.bookInformationVariant),
                              title: Text('Bilgi')),
                          ListTile(
                              leading: Icon(MdiIcons.meditation),
                              title: Text('Tedavi')),
                          ListTile(
                              leading: Icon(MdiIcons.flask),
                              title: Text('Geliştirmeler')),
                          ListTile(
                              leading: Icon(MdiIcons.tooltipTextOutline),
                              title: Text('Hikayeler')),
                        ],
                      ),
                      ListTile(
                        leading: Icon(Icons.settings),
                        title: Text('Ayarlar'),
                      )
                    ],
                  )),
                  SideMenuFooter(),
                ],
              ),
            ),
          ),
        );
      }
    }
    

    Well, the problem is the animation has inconsistences and after open the drawer, the drawer is duplicated as half; you can see it on the video. https://user-images.githubusercontent.com/5034215/114433613-b2c6bc80-9bca-11eb-8ec8-a68098186654.mp4

    What's the way to fix this?

    Thanks.

    opened by SalahAdDin 0
  • Make an option for folding downwards/upwards

    Make an option for folding downwards/upwards

    Right now the sidebar gets unfolded from under the phone (if you think 3d) Maybe you can make an option so that it gets unfolded from above the phone. This would make it such that there would be no background color seen behind the sidebar. And some people might choose this. Tell me if I am not clear enough.

    opened by aytunch 1
  • Make same thing but VERTICAL

    Make same thing but VERTICAL

    I love your drawer design but lately drawers are not used much in UIs. If we can use this as an expanding menu, it would look cool. Lets say We have an app bar and when we press a button inside the app bar, it grows while folding from top to bottom. Revealing a menu. In this case you might need to change the name from foldable_sidebar to foldable_menu maybe?

    opened by aytunch 1
Owner
Paras Jain
Mobile Application and Web Developer | @youtube Content Creator | Worship ReactJs | Flutter | Java | Dart | If anybody's gonna save us... it's us
Paras Jain
This is a repository for Flutter Focused Menu, an easy to implement package for adding Focused Long Press Menu to Flutter Applications

Focused Menu This is an easy to implement package for adding Focused Long Press Menu to Flutter Applications Current Features Add Focused Menu to Any

Paras Jain 160 Dec 26, 2022
An easy to configure sidebar widget for your flutter mobile/web apps

flutter_sidebar An easy to configure sidebar widget for your flutter mobile/web apps See also: scaffold_responsive Usage import 'package:flutter_sideb

Tushar Sadhwani 15 Sep 27, 2022
Let's create a selectable Flutter Navigation Drawer with routing that highlights the current item within the Flutter Sidebar Menu.

Flutter Tutorial - Sidebar Menu & Selectable Navigation Drawer Let's create a selectable Flutter Navigation Drawer with routing that highlights the cu

Johannes Milke 12 Dec 26, 2022
Let's create a Flutter Collapsible Sidebar Menu that can collapse and expand the Navigation Drawer in Flutter.

Flutter Tutorial - Collapsible Sidebar Menu & Navigation Drawer Let's create a Flutter Collapsible Sidebar Menu that can collapse and expand the Navig

Johannes Milke 22 Jan 3, 2023
A simple package for adding water drops to your Widgets!

Water Drop ?? ?? ?? A simple package for adding water drops to your Widgets! ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? Blog article with detailed explanation: htt

Marcin Szałek 46 Jun 30, 2022
Hyakunin Isshu 1 Jan 11, 2022
A fancy yet beautiful animated widget for your Flutter apps

FancyBar A fancy yet beautiful animated widget for your Flutter apps | Preview Version 1 | |---------|----------| | | | Preview Version 2 | |---------

Leo Elstin 33 Oct 10, 2022
Fancy Containers Flutter Package

Fancy Containers Fancy container package lets you add a beautiful gradient container to your Flutter app. Installation Add the latest version of packa

Aditya Thakur 9 Oct 27, 2022
A flutter Package provides you a modern animated fancy segment

animated_segment This package will animates a segment. Package provides you a mo

MindInventory 24 Dec 10, 2022
A TabBarController that is easy to use for flutter developers. 🥰 It supports various styles of page navigation, and you can also use it to customize your favorite styles. 🍻🍻

easy_tab_controller A user-friendly TabBarController widget for flutter developer. Getting Started This project is a starting point for a Flutter plug

圆号本昊 3 May 26, 2022