Skip to content

Instantly share code, notes, and snippets.

@Nash0x7E2
Created March 17, 2018 03:30
Show Gist options
  • Save Nash0x7E2/f522a7a9ecb1031f557d2999f7a79779 to your computer and use it in GitHub Desktop.
Save Nash0x7E2/f522a7a9ecb1031f557d2999f7a79779 to your computer and use it in GitHub Desktop.
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