-
-
Save Nash0x7E2/f522a7a9ecb1031f557d2999f7a79779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class Page3 extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new Scaffold( | |
appBar: new AppBar( | |
title: new Text('Page 3'), | |
elevation: 0.0, | |
), | |
body: new Container( | |
width: double.infinity, | |
height: double.infinity, | |
color: Colors.blue, | |
child: new Center( | |
child: new Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
new CircleAvatar( | |
backgroundImage: new NetworkImage('https://image.freepik.com/free-vector/vector-illustration-of-a-mountain-landscape_1441-77.jpg'), | |
radius: 70.0), | |
new Padding( | |
padding: const EdgeInsets.all(58.0), | |
child: new Row( | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
children: <Widget>[ | |
new RaisedButton(child: new Text('Home'), | |
onPressed: () => print ('I want to go home :( '), | |
) | |
], | |
), | |
) | |
], | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment