FLUTTER ECOSYSTEM

pacifio/fancy_drawer

A beautiful customisable drawer experience for your flutter app 🎯📱

fancy_drawer project cover
Stars
6
Forks
11
Last push (UTC)
Mar 13, 2023
Project status
Active
Adib Mohsin GitHub avatar
GITHUB User

Adib Mohsin ↗

high on vector spaces

@antarys-ai Dhaka , Bangladesh Official website ↗
LanguagesDartKotlinSwiftObjective-C

Technical topics

Packages published by this repository

Dependencies used

Dependency list 2 items
  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project README

Fancy drawer

Fancy drawer

A beautiful drawer experience for your flutter app .

Usage

import 'package:fancy_drawer/fancy_drawer.dart';

...

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
	child: Scaffold(), // Your app content
);

Parameters

required

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

optional

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

TODO

  • [x] Null safety
  • [ ] 3D perspective