Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition Height="*" />
- <RowDefinition Height="75" />
- </RowDefinition>
- // Gets the fixed top column.
- static Row _topBackgroundColumn = new Row(
- children: <Widget>[
- Padding(
- padding: EdgeInsets.all(20),
- child: Image(
- image: AssetImage("assets/animation-bird-1.png"),
- height: 50,
- alignment: AlignmentDirectional.topStart,
- )
- )
- ],
- );
- static Container _contentContainer = new Container(
- alignment: Alignment.center,
- child: Center(
- child: Text("bla")
- ),
- );
- // Gets the fixed, image-heavy bottom column.
- static Container _bottomBackgroundColumn = new Container(
- child:
- Image(
- image: AssetImage("assets/background-bottom.png"),
- repeat: ImageRepeat.repeatX,
- height: 50,
- alignment: Alignment.bottomCenter,
- )
- );
- static Container _pageContainer = new Container(
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.stretch,
- verticalDirection: VerticalDirection.down,
- children: <Widget>[
- _topBackgroundColumn, // Container with an image
- _contentContainer, // Container with a label
- _bottomBackgroundColumn, // Container with an image
- ],
- ),
- );
Add Comment
Please, Sign In to add comment