Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text(
- widget.title,
- ),
- backgroundColor: Theme.of(context).accentColor,
- textTheme: Theme.of(context).accentTextTheme,
- centerTitle: true,
- elevation: 0,
- ),
- body: Column(
- children: [
- Container(
- color: Theme.of(context).accentColor,
- height: 215.0,
- ),
- Expanded(
- child: Text('This content takes up any remaining space'),
- ),
- Container(
- height: 75.0,
- decoration: const BoxDecoration(
- gradient: LinearGradient(
- begin: Alignment.centerLeft,
- colors: [const Color(0xFF5252F5), const Color(0xFF3134EF)],
- tileMode: TileMode.repeated,
- ),
- ),
- child: SizedBox.expand(
- child: FlatButton(
- onPressed: () {
- // Do something on press
- },
- child: Text(
- 'PRESS ME',
- style: Theme.of(context).accentTextTheme.button,
- ),
- ),
- ),
- ),
- ],
- ),
- );
Add Comment
Please, Sign In to add comment