|
| 1 | +import 'package:flutter/material.dart'; |
| 2 | + |
| 3 | +void main() { |
| 4 | + runApp(const MyApp()); |
| 5 | +} |
| 6 | + |
| 7 | +class MyApp extends StatelessWidget { |
| 8 | + const MyApp({Key? key}) : super(key: key); |
| 9 | + |
| 10 | + @override |
| 11 | + Widget build(BuildContext context) { |
| 12 | + return MaterialApp( |
| 13 | + debugShowCheckedModeBanner: false, |
| 14 | + title: 'Flutter Demo', |
| 15 | + theme: ThemeData( |
| 16 | + primarySwatch: Colors.blue, |
| 17 | + ), |
| 18 | + home: const MyHomePage(), |
| 19 | + ); |
| 20 | + } |
| 21 | +} |
| 22 | + |
| 23 | +class MyHomePage extends StatefulWidget { |
| 24 | + const MyHomePage({Key? key}) : super(key: key); |
| 25 | + |
| 26 | + @override |
| 27 | + State<MyHomePage> createState() => _MyHomePageState(); |
| 28 | +} |
| 29 | + |
| 30 | +class _MyHomePageState extends State<MyHomePage> { |
| 31 | + get icon => null; |
| 32 | + |
| 33 | + @override |
| 34 | + Widget build(BuildContext context) { |
| 35 | + return Scaffold( |
| 36 | + appBar: AppBar( |
| 37 | + leading: IconButton( |
| 38 | + onPressed: () {}, |
| 39 | + icon: const Icon(Icons.arrow_back_rounded, color: Colors.black)), |
| 40 | + elevation: 0, |
| 41 | + backgroundColor: Colors.transparent, |
| 42 | + ), |
| 43 | + body: Container( |
| 44 | + height: 800, |
| 45 | + width: double.infinity, |
| 46 | + padding: const EdgeInsets.all(25), |
| 47 | + //color: Colors.g, |
| 48 | + child: Column( |
| 49 | + children: [ |
| 50 | + const Align( |
| 51 | + child: Text( |
| 52 | + 'Edit Profile', |
| 53 | + style: TextStyle( |
| 54 | + fontSize: 30, |
| 55 | + fontWeight: FontWeight.w800, |
| 56 | + ), |
| 57 | + ), |
| 58 | + alignment: Alignment.centerLeft, |
| 59 | + ), |
| 60 | + const SizedBox( |
| 61 | + height: 20, |
| 62 | + ), |
| 63 | + const CircleAvatar( |
| 64 | + backgroundImage: |
| 65 | + AssetImage('assets/065f106a8a83500e7e5fa3a12b7bef5d.jpg'), |
| 66 | + radius: 70, |
| 67 | + ), |
| 68 | + const Spacer(), |
| 69 | + Row( |
| 70 | + children: const [ |
| 71 | + Text( |
| 72 | + 'username', |
| 73 | + style: TextStyle(color: Colors.black87, fontSize: 17), |
| 74 | + ), |
| 75 | + Spacer(), |
| 76 | + Text( |
| 77 | + 'Amanda', |
| 78 | + style: TextStyle(color: Colors.black87, fontSize: 17), |
| 79 | + ), |
| 80 | + ], |
| 81 | + ), |
| 82 | + const Spacer(), |
| 83 | + const Divider( |
| 84 | + color: Colors.black12, |
| 85 | + thickness: 2.0, |
| 86 | + ), |
| 87 | + const Spacer(), |
| 88 | + Row( |
| 89 | + children: const [ |
| 90 | + Text( |
| 91 | + 'Email', |
| 92 | + style: TextStyle(color: Colors.black87, fontSize: 17), |
| 93 | + ), |
| 94 | + Spacer(), |
| 95 | + Text( |
| 96 | + 'abc@gmail.com', |
| 97 | + style: TextStyle(color: Colors.black87, fontSize: 17), |
| 98 | + ), |
| 99 | + ], |
| 100 | + ), |
| 101 | + const Spacer(), |
| 102 | + const Divider( |
| 103 | + color: Colors.black12, |
| 104 | + thickness: 2.0, |
| 105 | + ), |
| 106 | + const Spacer(), |
| 107 | + Row( |
| 108 | + children: const [ |
| 109 | + Text( |
| 110 | + 'Phone', |
| 111 | + style: TextStyle(color: Colors.black87, fontSize: 17), |
| 112 | + ), |
| 113 | + Spacer(), |
| 114 | + Text( |
| 115 | + '****999****', |
| 116 | + style: TextStyle(color: Colors.black87, fontSize: 17), |
| 117 | + ), |
| 118 | + ], |
| 119 | + ), |
| 120 | + const Spacer(), |
| 121 | + const Divider( |
| 122 | + color: Colors.black12, |
| 123 | + thickness: 2.0, |
| 124 | + ), |
| 125 | + const Spacer(), |
| 126 | + Row( |
| 127 | + children: const [ |
| 128 | + Text( |
| 129 | + 'Date of Birth', |
| 130 | + style: TextStyle(color: Colors.black87, fontSize: 17), |
| 131 | + ), |
| 132 | + Spacer(), |
| 133 | + Text( |
| 134 | + '20/09/2001', |
| 135 | + style: TextStyle(color: Colors.black), |
| 136 | + ), |
| 137 | + ], |
| 138 | + ), |
| 139 | + const Spacer(), |
| 140 | + const Divider( |
| 141 | + color: Colors.black12, |
| 142 | + thickness: 2.0, |
| 143 | + ), |
| 144 | + const Spacer(), |
| 145 | + Row( |
| 146 | + children: const [ |
| 147 | + Text( |
| 148 | + 'Address', |
| 149 | + style: TextStyle(color: Colors.black87, fontSize: 17), |
| 150 | + ), |
| 151 | + Spacer(), |
| 152 | + Text( |
| 153 | + '123 Royal Street, NewYork', |
| 154 | + style: TextStyle(color: Colors.black87, fontSize: 17), |
| 155 | + ), |
| 156 | + ], |
| 157 | + ), |
| 158 | + const Spacer(), |
| 159 | + const Divider( |
| 160 | + color: Colors.black12, |
| 161 | + thickness: 2.0, |
| 162 | + ), |
| 163 | + ], |
| 164 | + ), |
| 165 | + ), |
| 166 | + ); |
| 167 | + } |
| 168 | +} |
0 commit comments