v1.0.3
flutter_slide_drawer
它将帮助您轻松实现带有动画的 slide_drawer_scaffold :)
27喜欢 437近 30 天下载140Pub 分数
AndroidiOSWebmacOSWindowsLinux
它将帮助您轻松实现滑动效果的抽屉。
以下为英文项目原文快照,最新内容请访问 GitHub。
A Flutter package, It would help you make has slide effect drawer easy.
To start using this package, add flutter_slide_drawer dependency to your pubspec.yaml
dependencies:
flutter_slide_drawer: '<latest_release>'
SliderDrawerWidget(
key: drawerKey,
option: SliderDrawerOption(),
drawer: CustomDrawer(),
body: Scaffold(
appBar: AppBar(),
body: Container(),
)
)
| Parameters | Value | Required | Docs |
|---|---|---|---|
key |
GlobalKey<SliderDrawerWidgetState> |
YES | Required to open drawer. |
drawer |
Widget |
YES | Custom Widget to use drawer |
body |
Widget |
YES | Body Widget |
option |
SliderDrawerOption |
No | You can set several options. |
SliderDrawerOption(
backgroundImage: Image.asset("assets/sample_background.jpg"),
backgroundColor: Colors.black,
sliderEffectType: SliderEffectType.Rounded,
upDownScaleAmount: 50,
radiusAmount: 50,
direction: SliderDrawerDirection.LTR,
)
| Parameters | Value | Required | Docs |
|---|---|---|---|
backgroundImage |
Image Widget |
No | be covered Background Image in Drawer |
backgroundColor |
Color |
No | background Color in Drawer (default Color is blue) |
sliderEffectType |
SliderEffectType |
No | Slide push Effect Type ( Rounded , Rectangle) |
upDownScaleAmount |
double |
No | If you use SliderEffectType.Runded then you can use this parameters. It make margin Vertical in Scaffold |
radiusAmount |
double |
No | If you use SliderEffectType.Runded then you can use this parameters. It make as amount as radius in Scaffold |
direction |
SliderDrawerDirection |
No | Drawer direction option, default is SliderDrawerDirection.LTR |
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗