Last active
October 7, 2020 05:11
-
-
Save TheNova22/8e6825fdfaa8fdf5e179fbbb03efcac5 to your computer and use it in GitHub Desktop.
Custom App Bar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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