Skip to content

Commit 347d093

Browse files
committed
Profile 1 Landscape Fixed
1 parent b2147e3 commit 347d093

File tree

1 file changed

+75
-65
lines changed

1 file changed

+75
-65
lines changed

lib/ui/page/profile/profile_one_page.dart

Lines changed: 75 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,51 @@ class ProfileOnePage extends StatelessWidget {
99
//Column1
1010
Widget profileColumn() => Container(
1111
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(
2017
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
2118
children: <Widget>[
22-
IconButton(
23-
icon: Icon(Icons.chat),
24-
color: Colors.black,
25-
onPressed: () {},
19+
ProfileTile(
20+
title: "Pawan Kumar",
21+
subtitle: "Developer",
2622
),
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),
3228
color: Colors.black,
33-
width: 4.0,
29+
onPressed: () {},
3430
),
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+
)
4854
],
49-
)
50-
],
55+
),
56+
),
5157
),
5258
);
5359

@@ -76,39 +82,43 @@ class ProfileOnePage extends StatelessWidget {
7682
child: Row(
7783
mainAxisAlignment: MainAxisAlignment.spaceAround,
7884
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+
),
95103
),
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+
),
112122
),
113123
],
114124
),

0 commit comments

Comments
 (0)