fancy_drawer 1.0.0

Flutter Android iOS web

A fancy , animated and customizable drawer for your flutter apps

Fancy drawer #

Fancy drawer

A beautiful drawer experience for your flutter app .

Installing #

dependencies:
  ...
  fancy_drawer: ^0.0.1

Usage #

import 'package:fancy_drawer/fancy_drawer.dart'; // Add this
...
FancyDrawerController _controller;

@override
void initState() {
  super.initState();
  _controller = FancyDrawerController(
      vsync: this, duration: Duration(milliseconds: 250))
    ..addListener(() {
      setState(() {}); // Must call setState
    }); // This chunk of code is important
}

@override
void dispose() {
  _controller.dispose(); // Dispose controller
  super.dispose();
}
...
FancyDrawerWrapper(
	backgroundColor: Colors.white, // Drawer background
	controller: _controller, // Drawer controller
	drawerItems: <Widget>[], // Drawer items
	chile: Scaffold(), // Your app content
);

Parameters #

required #

drawerItems Drawer items are widgets needed to render<br/> child child is the main app content<br/> controller is needed to init and maintain the animation<br/>

optional #

backgroundColor Set to white background<br/> itemGap set to 10.0<br/> hideOnContentTap controls if drawer will hide on content tap or not , set to true<br/>cornerRadius set to 8.0<br/>

15
likes
110
pub points
80%
popularity

A fancy , animated and customizable drawer for your flutter apps

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

adibmohsin.root@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on fancy_drawer