skip to Main Content

How to open EndDrawer – Flutter

I'm trying to adapt flutter source code to create a side panel. My code is this : class _MyHomePageState extends State<MyHomePage> { final GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>(); void _openEndDrawer(){ _scaffoldKey.currentState!.openEndDrawer(); } void _closeEndDrawer(){ Navigator.of(context).pop(); } @override Widget build(BuildContext context) {…

VIEW QUESTION
Back To Top
Search