-
-
Save Nash0x7E2/9548617d91f190b9ed230486cb6620ab 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 Page2 extends StatelessWidget { | |
final String name; | |
Page2({this.name}); | |
@override | |
Widget build(BuildContext context) { | |
return new Scaffold( | |
appBar: new AppBar( | |
title: new Text('Page 2'), | |
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/business-person-cartoon-with-a-light-bulb_1207-283.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('Use the force Luke...')), | |
new RaisedButton( | |
child: new Text('Page 3'), | |
onPressed: () => print('Vader killed your father')), | |
], | |
), | |
) | |
], | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment