@@ -9,45 +9,51 @@ class ProfileOnePage extends StatelessWidget {
9
9
//Column1
10
10
Widget profileColumn () => Container (
11
11
height: deviceSize.height * 0.24 ,
12
- child: Column (
13
- mainAxisAlignment: MainAxisAlignment .spaceEvenly,
14
- children: < Widget > [
15
- ProfileTile (
16
- title: "Pawan Kumar" ,
17
- subtitle: "Developer" ,
18
- ),
19
- Row (
12
+ child: FittedBox (
13
+ alignment: Alignment .center,
14
+ child: Padding (
15
+ padding: const EdgeInsets .all (8.0 ),
16
+ child: Column (
20
17
mainAxisAlignment: MainAxisAlignment .spaceEvenly,
21
18
children: < Widget > [
22
- IconButton (
23
- icon: Icon (Icons .chat),
24
- color: Colors .black,
25
- onPressed: () {},
19
+ ProfileTile (
20
+ title: "Pawan Kumar" ,
21
+ subtitle: "Developer" ,
26
22
),
27
- Container (
28
- decoration : BoxDecoration (
29
- borderRadius :
30
- new BorderRadius . all ( new Radius . circular ( 50.0 )),
31
- border : new Border . all (
23
+ Row (
24
+ mainAxisAlignment : MainAxisAlignment .spaceEvenly,
25
+ children : < Widget > [
26
+ IconButton (
27
+ icon : Icon ( Icons .chat),
32
28
color: Colors .black,
33
- width : 4.0 ,
29
+ onPressed : () {} ,
34
30
),
35
- ),
36
- child: CircleAvatar (
37
- backgroundImage: NetworkImage (
38
- "https://avatars0.githubusercontent.com/u/12619420?s=460&v=4" ),
39
- foregroundColor: Colors .black,
40
- radius: 40.0 ,
41
- ),
42
- ),
43
- IconButton (
44
- icon: Icon (Icons .call),
45
- color: Colors .black,
46
- onPressed: () {},
47
- ),
31
+ Container (
32
+ decoration: BoxDecoration (
33
+ borderRadius:
34
+ new BorderRadius .all (new Radius .circular (50.0 )),
35
+ border: new Border .all (
36
+ color: Colors .black,
37
+ width: 4.0 ,
38
+ ),
39
+ ),
40
+ child: CircleAvatar (
41
+ backgroundImage: NetworkImage (
42
+ "https://avatars0.githubusercontent.com/u/12619420?s=460&v=4" ),
43
+ foregroundColor: Colors .black,
44
+ radius: 40.0 ,
45
+ ),
46
+ ),
47
+ IconButton (
48
+ icon: Icon (Icons .call),
49
+ color: Colors .black,
50
+ onPressed: () {},
51
+ ),
52
+ ],
53
+ )
48
54
],
49
- )
50
- ] ,
55
+ ),
56
+ ) ,
51
57
),
52
58
);
53
59
@@ -76,39 +82,43 @@ class ProfileOnePage extends StatelessWidget {
76
82
child: Row (
77
83
mainAxisAlignment: MainAxisAlignment .spaceAround,
78
84
children: < Widget > [
79
- Column (
80
- mainAxisAlignment: MainAxisAlignment .spaceEvenly,
81
- children: < Widget > [
82
- ProfileTile (
83
- title: "Website" ,
84
- subtitle: "about.me/imthepk" ,
85
- ),
86
- ProfileTile (
87
- title: "Phone" ,
88
- subtitle: "+919876543210" ,
89
- ),
90
- ProfileTile (
91
- title: "YouTube" ,
92
- subtitle: "youtube.com/mtechviral" ,
93
- ),
94
- ],
85
+ FittedBox (
86
+ child: Column (
87
+ mainAxisAlignment: MainAxisAlignment .spaceEvenly,
88
+ children: < Widget > [
89
+ ProfileTile (
90
+ title: "Website" ,
91
+ subtitle: "about.me/imthepk" ,
92
+ ),
93
+ ProfileTile (
94
+ title: "Phone" ,
95
+ subtitle: "+919876543210" ,
96
+ ),
97
+ ProfileTile (
98
+ title: "YouTube" ,
99
+ subtitle: "youtube.com/mtechviral" ,
100
+ ),
101
+ ],
102
+ ),
95
103
),
96
- Column (
97
- mainAxisAlignment: MainAxisAlignment .spaceEvenly,
98
- children: < Widget > [
99
- ProfileTile (
100
- title: "Location" ,
101
- subtitle: "New Delhi" ,
102
- ),
103
- ProfileTile (
104
- title: "Email" ,
105
- subtitle: "mtechviral@gmail.com" ,
106
- ),
107
- ProfileTile (
108
- title: "Facebook" ,
109
- subtitle: "fb.com/imthepk" ,
110
- ),
111
- ],
104
+ FittedBox (
105
+ child: Column (
106
+ mainAxisAlignment: MainAxisAlignment .spaceEvenly,
107
+ children: < Widget > [
108
+ ProfileTile (
109
+ title: "Location" ,
110
+ subtitle: "New Delhi" ,
111
+ ),
112
+ ProfileTile (
113
+ title: "Email" ,
114
+ subtitle: "mtechviral@gmail.com" ,
115
+ ),
116
+ ProfileTile (
117
+ title: "Facebook" ,
118
+ subtitle: "fb.com/imthepk" ,
119
+ ),
120
+ ],
121
+ ),
112
122
),
113
123
],
114
124
),
0 commit comments