-
-
Save MarcinusX/ab778fff2929121635e9e46af8cec4b8 to your computer and use it in GitHub Desktop.
This file contains 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
class AirAsiaBar extends StatelessWidget { | |
final double height; | |
const AirAsiaBar({Key key, this.height}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Stack( | |
children: <Widget>[ | |
new Container( | |
decoration: new BoxDecoration( | |
gradient: new LinearGradient( | |
begin: Alignment.topCenter, | |
end: Alignment.bottomCenter, | |
colors: [Colors.red, const Color(0xFFE64C85)], | |
), | |
), | |
height: height, | |
), | |
new AppBar( | |
backgroundColor: Colors.transparent, | |
elevation: 0.0, | |
centerTitle: true, | |
title: new Text( | |
"AirAsia", | |
style: TextStyle(fontFamily: 'NothingYouCouldDo', fontWeight: FontWeight.bold), | |
), | |
), | |
], | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment