Comments (2)
Can you please upload video and code?
from flutter_slider_drawer.
Hey @nicks258 , it will working when you rebuild this SliderMenuContainer
after update slideDirection
.
For Example ,
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
GlobalKey<SliderMenuContainerState> _key =
new GlobalKey<SliderMenuContainerState>();
String title;
SlideDirection slideDirection;
@override
void initState() {
title = "Home";
slideDirection = SlideDirection.LEFT_TO_RIGHT;
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: SliderMenuContainer(
appBarColor: Colors.white,
key: _key,
sliderMenuOpenSize: 200,
splashColor: Colors.amber,
slideDirection: slideDirection,
isDraggable: false,
title: Text(
title,
style: TextStyle(fontSize: 22, fontWeight: FontWeight.w700),
),
sliderMenu: MenuWidget(
onItemClick: (title) {
_key.currentState.closeDrawer();
setState(() {
this.title = title;
});
},
),
sliderMain: MainWidget(
onItemTap: () {
setState(() {
if (slideDirection == SlideDirection.LEFT_TO_RIGHT) {
slideDirection = SlideDirection.RIGHT_TO_LEFT;
} else {
slideDirection = SlideDirection.LEFT_TO_RIGHT;
}
});
},
)),
),
);
}
}
from flutter_slider_drawer.
Related Issues (20)
- How to remove the tap splash in Web? HOT 1
- menu icon placement HOT 1
- How to add Custoem AppBar with menus HOT 3
- Flutter_slider_drawer and MaterialRoute navigation
- useless documentation HOT 2
- SliderAppBar uses Material library explicitly, and should not. HOT 1
- [Feature Request] Add optional greyed out backdrop to child of the SliderDrawer HOT 2
- [Bug] SliderDrawer has invisible overlay right below App Bar HOT 13
- [BUG] animated burger menu icon is not performing animation when opening slider via right slide HOT 1
- [BUG] direction is right, can't current work on style1 HOT 2
- I can't use the pinch&zoom in a widget inside the slider HOT 3
- Set drawer open as default HOT 2
- [Feature Request] customize hamburger icon HOT 1
- Webview scroll fails on android HOT 3
- Drag setting
- Add feature - Disable on tap close drawer
- scaffold background color in SliderDrawer child not changing when dark mode is set
- Clicking Drawer Icon doesn't open when Custom Drawer Icon is Provided HOT 2
- The child should be within the screen.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_slider_drawer.