Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pacifio/fancy_drawer
A beautiful customisable drawer experience for your flutter app 🎯📱
https://github.com/pacifio/fancy_drawer
app-drawer dart flutter flutter-package flutter-ui
Last synced: 3 months ago
JSON representation
A beautiful customisable drawer experience for your flutter app 🎯📱
- Host: GitHub
- URL: https://github.com/pacifio/fancy_drawer
- Owner: pacifio
- License: mit
- Created: 2020-04-07T02:11:36.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T06:33:28.000Z (almost 2 years ago)
- Last Synced: 2023-08-20T21:56:59.312Z (over 1 year ago)
- Topics: app-drawer, dart, flutter, flutter-package, flutter-ui
- Language: Dart
- Homepage:
- Size: 1.83 MB
- Stars: 8
- Watchers: 2
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Fancy drawer

A beautiful drawer experience for your flutter app .
## Usage
```dart
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: [], // 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