Release 2.1.1

master
NikhilVadoliya 3 years ago
parent d89fe3fd4f
commit fb6eefe32c

@ -1,3 +1,8 @@
## [2.1.1] - Release
* Provide custom appBar feature
* Slider LeftToRight and RightToLeft issue fixed
## [2.1.0] - Release ## [2.1.0] - Release
* Code Refactor * Code Refactor
* Improve Documentation * Improve Documentation
@ -10,16 +15,13 @@
* replace `sliderMenuOpenSize` and `sliderMenuCloseSize` to `sliderOpenSize` and `sliderCloseSize` * replace `sliderMenuOpenSize` and `sliderMenuCloseSize` to `sliderOpenSize` and `sliderCloseSize`
* replace `sliderMenu` and `sliderMain` to `slider` and `child` * replace `sliderMenu` and `sliderMain` to `slider` and `child`
* replace `closeDrawer` and `openDrawer` to `closeSlider` and `openSlider` * replace `closeDrawer` and `openDrawer` to `closeSlider` and `openSlider`
* replace `SliderMenuContainerState` to `closeSlider` * replace `SliderMenuContainerState` to `SliderDrawerState`
* replace `hasAppBar` to 'appBar' : if you set `app:null` then it will hide * replace `hasAppBar` to 'appBar' : if you set `app:null` then it will hide
* replace `isShadow` to 'sliderShadow' : if you set `sliderShadow:null` then shadow will not come * replace `isShadow` to 'sliderShadow' : if you set `sliderShadow:null` then shadow will not come
by default it's null by default it's null
## [2.0.0] - Release ## [2.0.0] - Release
* Added null safety * Added null safety

@ -30,11 +30,14 @@ dependencies:
- Provide drawer icon animation - Provide drawer icon animation
- Provide shadow of Main screen with customization of shadow colors,blurRadius and spreadRadius - Provide shadow of Main screen with customization of shadow colors,blurRadius and spreadRadius
- Provide RTL(RightToLeft),LTR(LeftToRight) and TTB(TopToBottom) slider open selection - Provide RTL(RightToLeft),LTR(LeftToRight) and TTB(TopToBottom) slider open selection
- Provide Custom Appbar support and you can also use plugin appBar with use of `SliderAppBar` widget
# Code # Code
``` ```
Scaffold( Widget build(BuildContext context) {
return Scaffold(
body: SliderDrawer( body: SliderDrawer(
key: _key, key: _key,
appBar: SliderAppBar( appBar: SliderAppBar(
@ -44,7 +47,8 @@ dependencies:
fontSize: 22, fontWeight: FontWeight.w700))), fontSize: 22, fontWeight: FontWeight.w700))),
slider: Container(color: Colors.red), slider: Container(color: Colors.red),
child: Container(color: Colors.amber), child: Container(color: Colors.amber),
)) ));
}
``` ```
</br> </br>
@ -58,7 +62,8 @@ dependencies:
![slider_document](slider_d_2.png) ![slider_document](slider_d_2.png)
</br>
</br>
# Slider open # Slider open
| SliderOpen.LEFT_TO_RIGHT | SliderOpen.RIGHT_TO_LEFT | SliderOpen.TOP_TO_BOTTOM | | SliderOpen.LEFT_TO_RIGHT | SliderOpen.RIGHT_TO_LEFT | SliderOpen.TOP_TO_BOTTOM |
@ -67,12 +72,13 @@ dependencies:
</br>
### Controlling the drawer ### Controlling the drawer
``` ```
GlobalKey<SliderDrawerState> _key = class _MyAppState extends State<MyApp> {
new GlobalKey<SliderDrawerState>(); GlobalKey<SliderDrawerState> _key = GlobalKey<SliderDrawerState>();
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -81,12 +87,14 @@ GlobalKey<SliderDrawerState> _key =
key: _key, key: _key,
appBar: SliderAppBar( appBar: SliderAppBar(
appBarColor: Colors.white, appBarColor: Colors.white,
title: Text(title, title: Text('Title',
style: const TextStyle( style:
fontSize: 22, fontWeight: FontWeight.w700))), const TextStyle(fontSize: 22, fontWeight: FontWeight.w700))),
slider: Container(color: Colors.red), slider: Container(color: Colors.red),
child: Container(color: Colors.amber), child: Container(color: Colors.amber),
)), ));
}
}
``` ```

@ -88,8 +88,8 @@ class SliderDrawer extends StatefulWidget {
/// ///
final SlideDirection slideDirection; final SlideDirection slideDirection;
const SliderDrawer({ const SliderDrawer(
Key? key, {Key? key,
required this.slider, required this.slider,
required this.child, required this.child,
this.isDraggable = true, this.isDraggable = true,
@ -99,8 +99,8 @@ class SliderDrawer extends StatefulWidget {
this.sliderCloseSize = 0, this.sliderCloseSize = 0,
this.slideDirection = SlideDirection.LEFT_TO_RIGHT, this.slideDirection = SlideDirection.LEFT_TO_RIGHT,
this.sliderShadow, this.sliderShadow,
this.appBar = const SliderAppBar(), this.appBar = const SliderAppBar()})
}) : super(key: key); : super(key: key);
@override @override
SliderDrawerState createState() => SliderDrawerState(); SliderDrawerState createState() => SliderDrawerState();

@ -1,6 +1,6 @@
name: flutter_slider_drawer name: flutter_slider_drawer
description: A Flutter package with custom implementation of the Slider Drawer Menu description: A Flutter package with custom implementation of the Slider Drawer Menu
version: 2.1.0 version: 2.1.1
homepage: https://github.com/NikhilVadoliya/Flutter_slider_drawer homepage: https://github.com/NikhilVadoliya/Flutter_slider_drawer
environment: environment:

Loading…
Cancel
Save