anydrawer library
AnyDrawer is a Flutter package that allows you to show drawers from any horizontal side of the screen. You can also customize the drawers.
This package removes the limitation of the default scaffold drawer which
can only be shown from the scaffold.
Just call the showDrawer function to show the drawer.
You can also specify the DrawerConfig to customize the drawer.
Classes
- AnyDrawerController
- any drawer controller class This class is used to close the drawer.
- DrawerConfig
- Configuration for the drawer. widthPercentage is the width for the drawer. If not specified, the default width will be used which is 0.8 for mobile, 0.3 for desktop and 0.5 for tablet.
Enums
- DrawerSide
- Drawer side enum left or right
Functions
-
showDrawer(
BuildContext context, {required DrawerBuilder builder, void onOpen()?, void onClose()?, DrawerConfig? config, AnyDrawerController? controller}) → void - anydrawer is a package that allows you to show a drawer from any horizontal side of the screen. You can also customize the drawer. This package removes the limitation of the default scaffold drawer which can only be shown from the scaffold. Just call the showDrawer function to show the drawer. You can also specify the DrawerConfig to customize the drawer.
Typedefs
- DrawerBuilder = Widget Function(BuildContext context)
-
Type definition for the drawer builder.
The
contextis the build context