Guest User

Untitled

a guest
Jan 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. @override
  2. Widget build(BuildContext context) {
  3. return Scaffold(
  4. appBar: AppBar(
  5. title: Text(
  6. widget.title,
  7. ),
  8. backgroundColor: Theme.of(context).accentColor,
  9. textTheme: Theme.of(context).accentTextTheme,
  10. centerTitle: true,
  11. elevation: 0,
  12. ),
  13. body: Column(
  14. children: [
  15. Container(
  16. color: Theme.of(context).accentColor,
  17. height: 215.0,
  18. ),
  19. Expanded(
  20. child: Text('This content takes up any remaining space'),
  21. ),
  22. Container(
  23. height: 75.0,
  24. decoration: const BoxDecoration(
  25. gradient: LinearGradient(
  26. begin: Alignment.centerLeft,
  27. colors: [const Color(0xFF5252F5), const Color(0xFF3134EF)],
  28. tileMode: TileMode.repeated,
  29. ),
  30. ),
  31. child: SizedBox.expand(
  32. child: FlatButton(
  33. onPressed: () {
  34. // Do something on press
  35. },
  36. child: Text(
  37. 'PRESS ME',
  38. style: Theme.of(context).accentTextTheme.button,
  39. ),
  40. ),
  41. ),
  42. ),
  43. ],
  44. ),
  45. );
Add Comment
Please, Sign In to add comment