alvinvin00

profile_page.dart

Mar 18th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.63 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class ProfilePage extends StatefulWidget {
  4.   @override
  5.   _ProfilePageState createState() => _ProfilePageState();
  6. }
  7.  
  8. class _ProfilePageState extends State<ProfilePage> {
  9.   @override
  10.   Widget build(BuildContext context) {
  11.     return Scaffold(
  12.       appBar: AppBar(
  13.         title: Text('Profile'),
  14.       ),
  15.       body: Padding(
  16.         padding: const EdgeInsets.all(16.0),
  17.         child: Column(
  18.           crossAxisAlignment: CrossAxisAlignment.start,
  19.           children: <Widget>[
  20.             Container(
  21.               padding: EdgeInsets.only(
  22.                 top: 50.0,
  23.                 bottom: 50.0,
  24.               ),
  25.               child: Center(
  26.                 child: CircleAvatar(
  27.                   radius: 50.0,
  28.                   backgroundColor: Colors.grey,
  29. //                backgroundImage: Image.asset('images/bencana_logo.png'),
  30.                   child: Icon(
  31.                     Icons.person,
  32.                     size: 80.0,
  33.                     color: Colors.white,
  34.                   ),
  35.                 ),
  36.               ),
  37.             ),
  38.             Text('Full Name'),
  39.             SizedBox(height: 10.0,),
  40.             Text('Email'),
  41.             SizedBox(height: 20.0,),
  42.             Row(
  43.               children: <Widget>[
  44.                 Expanded(child: SizedBox()),
  45.                 RaisedButton(
  46.                   child: Text('Change Password'),
  47.                   color: Colors.teal,
  48.                   textColor: Colors.white,
  49.                   onPressed: () {},
  50.                 ),
  51.               ],
  52.             ),
  53.           ],
  54.         ),
  55.       ),
  56.     );
  57.   }
  58. }
Add Comment
Please, Sign In to add comment