Skip to content

Instantly share code, notes, and snippets.

@MarcinusX
Created September 3, 2018 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcinusX/ab778fff2929121635e9e46af8cec4b8 to your computer and use it in GitHub Desktop.
Save MarcinusX/ab778fff2929121635e9e46af8cec4b8 to your computer and use it in GitHub Desktop.
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