Answers for "flutter sidebar"

5

flutter drawer

Scaffold(
   drawer: Drawer(
      child: ListView(
        padding: EdgeInsets.zero,
        children: [
              DrawerHeader(
                   child: Text("Header")),
              ListTile(
                  title: Text("Home"))
        ]),
  ), 
);
Posted by: Guest on June-26-2020
0

app drawer in flutter

Widget createDrawerBodyItem(
   {IconData icon, String text, GestureTapCallback onTap}) {
 return ListTile(
   title: Row(
     children: <Widget>[
       Icon(icon),
       Padding(
         padding: EdgeInsets.only(left: 8.0),
         child: Text(text),
       )
     ],
   ),
   onTap: onTap,
 );
}
Posted by: Guest on November-26-2020
0

flutter sidebox

const SizedBox(
  width: 200.0,
  height: 300.0,
)
Posted by: Guest on August-20-2021

Browse Popular Code Answers by Language