Skip to content

Instantly share code, notes, and snippets.

@TheNova22
Last active October 7, 2020 05:11
Show Gist options
  • Save TheNova22/8e6825fdfaa8fdf5e179fbbb03efcac5 to your computer and use it in GitHub Desktop.
Save TheNova22/8e6825fdfaa8fdf5e179fbbb03efcac5 to your computer and use it in GitHub Desktop.
Custom App Bar
// vim: syntax=dart
PreferredSize(
preferredSize: Size(double.infinity, 100),
child: Container(
decoration: BoxDecoration(
boxShadow: [BoxShadow(
color: Colors.black12,
spreadRadius: 5,
blurRadius: 2
)]
),
width: MediaQuery.of(context).size.width,
height: 100,
child: Container(
decoration: BoxDecoration(
color: Colors.blueAccent,
borderRadius: BorderRadius.only(bottomLeft: Radius.circular(20),bottomRight: Radius.circular(20))
),
child: Container(
margin: EdgeInsets.fromLTRB(0, 20, 0, 0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Icon(Icons.navigate_before,size: 40,color: Colors.white,),
Text("Foodbar",style: TextStyle(fontSize: 30,color: Colors.white),),
Icon(Icons.navigate_before,color: Colors.transparent,),
],
),
),
),
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment