Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class ProfilePage extends StatefulWidget {
- @override
- _ProfilePageState createState() => _ProfilePageState();
- }
- class _ProfilePageState extends State<ProfilePage> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text('Profile'),
- ),
- body: Padding(
- padding: const EdgeInsets.all(16.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- Container(
- padding: EdgeInsets.only(
- top: 50.0,
- bottom: 50.0,
- ),
- child: Center(
- child: CircleAvatar(
- radius: 50.0,
- backgroundColor: Colors.grey,
- // backgroundImage: Image.asset('images/bencana_logo.png'),
- child: Icon(
- Icons.person,
- size: 80.0,
- color: Colors.white,
- ),
- ),
- ),
- ),
- Text('Full Name'),
- SizedBox(height: 10.0,),
- Text('Email'),
- SizedBox(height: 20.0,),
- Row(
- children: <Widget>[
- Expanded(child: SizedBox()),
- RaisedButton(
- child: Text('Change Password'),
- color: Colors.teal,
- textColor: Colors.white,
- onPressed: () {},
- ),
- ],
- ),
- ],
- ),
- ),
- );
- }
- }
Add Comment
Please, Sign In to add comment