Skip to content

Instantly share code, notes, and snippets.

@Nash0x7E2
Last active March 22, 2018 19:40
Show Gist options
  • Save Nash0x7E2/9548617d91f190b9ed230486cb6620ab to your computer and use it in GitHub Desktop.
Save Nash0x7E2/9548617d91f190b9ed230486cb6620ab to your computer and use it in GitHub Desktop.
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