How To Make Drawer In Flutter

import ‘package:flutter/material.dart’;void main() => runApp(MaterialApp(title: “game”,home: MyApp(),));class MyApp extends StatefulWidget {@overrideState<StatefulWidget> createState() {return _MyAppState();}}class _MyAppState extends State<MyApp> {@overrideWidget build(BuildContext context) {return Scaffold(appBar: AppBar(title: Text(“dashboard”)),drawer: Drawer(child: Column(children: <Widget>[Container(color: Theme.of(context).primaryColor,width:double.infinity,child:Column(children: <Widget>[Container(margin: EdgeInsets.only(top:30, bottom: 20),width: 85,height: 60,decoration: BoxDecoration(shape: BoxShape.circle,image: DecorationImage(image:NetworkImage(“https://cdn.worldvectorlogo.com/logos/flutter-logo.svg"))),),Text(“Game”,style: TextStyle(color: Colors.white, fontSize: 20,),),],),

Read More

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store