Guest User

Untitled

a guest
Dec 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <RowDefinitions>
  2. <RowDefinition Height="50" />
  3. <RowDefinition Height="*" />
  4. <RowDefinition Height="75" />
  5. </RowDefinition>
  6.  
  7. // Gets the fixed top column.
  8. static Row _topBackgroundColumn = new Row(
  9. children: <Widget>[
  10. Padding(
  11. padding: EdgeInsets.all(20),
  12. child: Image(
  13. image: AssetImage("assets/animation-bird-1.png"),
  14. height: 50,
  15. alignment: AlignmentDirectional.topStart,
  16. )
  17. )
  18. ],
  19. );
  20.  
  21. static Container _contentContainer = new Container(
  22. alignment: Alignment.center,
  23. child: Center(
  24. child: Text("bla")
  25. ),
  26. );
  27.  
  28. // Gets the fixed, image-heavy bottom column.
  29. static Container _bottomBackgroundColumn = new Container(
  30. child:
  31. Image(
  32. image: AssetImage("assets/background-bottom.png"),
  33. repeat: ImageRepeat.repeatX,
  34. height: 50,
  35. alignment: Alignment.bottomCenter,
  36. )
  37. );
  38. static Container _pageContainer = new Container(
  39. child: Column(
  40. crossAxisAlignment: CrossAxisAlignment.stretch,
  41. verticalDirection: VerticalDirection.down,
  42. children: <Widget>[
  43. _topBackgroundColumn, // Container with an image
  44. _contentContainer, // Container with a label
  45. _bottomBackgroundColumn, // Container with an image
  46. ],
  47. ),
  48. );
Add Comment
Please, Sign In to add comment