Skip to content

Commit d7cc421

Browse files
[Feature] - Updating Profile Page UI
1 parent fd61b14 commit d7cc421

File tree

15 files changed

+517
-19
lines changed

15 files changed

+517
-19
lines changed

assets/feature_stack/1.jpg

71.5 KB
Loading

assets/feature_stack/2.jpg

300 KB
Loading

assets/feature_stack/3.jpg

113 KB
Loading

assets/feature_stack/4.jpg

21 KB
Loading

assets/feature_stack/5.jpg

54 KB
Loading

assets/feature_stack/user.jpg

238 KB
Loading

assets/font/Roboto-Bold.ttf

166 KB
Binary file not shown.

assets/font/Roboto-Light.ttf

166 KB
Binary file not shown.

assets/font/Roboto-Regular.ttf

167 KB
Binary file not shown.

assets/image/background/bg01.jpg

2.84 MB
Loading

lib/app_screens/chat/other_user_profile.dart

+100-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:flutter/cupertino.dart';
22
import 'package:flutter/material.dart';
3+
import 'package:google_fonts/google_fonts.dart';
34
import 'package:ios_chatapp/model/users.dart';
45
import 'package:ios_chatapp/provider/user_provider.dart';
56
import 'package:ios_chatapp/shared/style.dart';
@@ -51,22 +52,107 @@ class _OtherUserProfileState extends State<OtherUserProfile> {
5152
// )
5253
return Consumer<UserProvider>(
5354
builder: (context, userProfile, _) => CupertinoPageScaffold(
54-
child: Card(
55-
margin: const EdgeInsets.only(bottom: defaultPadding),
56-
color: deepPurpleAccent,
57-
child: Column(
58-
// clipBehavior: Clip.none,
59-
children: [
60-
// Show Other User Background Image
61-
_buildUserBackgroundImage(),
55+
// child: Card(
56+
// margin: const EdgeInsets.only(bottom: defaultPadding),
57+
// color: deepPurpleAccent,
58+
// // child: Column(
59+
// // // clipBehavior: Clip.none,
60+
// // children: [
61+
// // // Show Other User Background Image
62+
// // _buildUserBackgroundImage(),
6263

63-
// Show Other User Profile Image and Name
64-
_buildUserCardText()
64+
// // // Show Other User Profile Image and Name
65+
// // _buildUserCardText()
6566

66-
// Show Chat Button
67-
],
68-
)
69-
)
67+
// // // Show Chat Button
68+
// // ],
69+
// // )
70+
// // child: Container(
71+
// // decoration: BoxDecoration(
72+
// // image: DecorationImage(
73+
// // image: AssetImage("assets/image/user/sample_user.png"),
74+
// // fit: BoxFit.fitWidth,
75+
// // alignment: Alignment.topCenter,
76+
// // )
77+
// // ),
78+
// // child: Container(
79+
// // child: Column(
80+
// // crossAxisAlignment: CrossAxisAlignment.center,
81+
// // // ignore: prefer_const_literals_to_create_immutables
82+
// // children: [
83+
// // TextButton(
84+
// // onPressed: () {
85+
// // Navigator.of(context).pop();
86+
// // },
87+
// // child: const Text('Go back')
88+
// // ),
89+
// // Text(
90+
// // // 'Test',
91+
// // selectedUser!.name,
92+
// // // userList.userName,
93+
// // style: TextStyle(
94+
// // fontWeight: FontWeight.bold,
95+
// // color: Colors.white
96+
// // )
97+
// // ),
98+
// // ],
99+
// // )
100+
// // )
101+
102+
// // ),
103+
// )
104+
child: Stack(
105+
children: [
106+
SizedBox(
107+
child: Image.asset("assets/image/background/bg01.jpg", fit: BoxFit.cover),
108+
),
109+
DraggableScrollableSheet(
110+
minChildSize: 0.1,
111+
initialChildSize: 0.22,
112+
builder:(context, scrollController) {
113+
return SingleChildScrollView(
114+
physics: const NeverScrollableScrollPhysics(),
115+
child: Container(
116+
constraints: BoxConstraints(minHeight: MediaQuery.of(context).size.height),
117+
color: Colors.amber,
118+
child: Column(
119+
crossAxisAlignment: CrossAxisAlignment.start,
120+
mainAxisAlignment: MainAxisAlignment.start,
121+
children: [
122+
Container(
123+
padding: const EdgeInsets.only(left: 32, right: 32, top: 32),
124+
child: Row(
125+
mainAxisAlignment: MainAxisAlignment.spaceBetween,
126+
children: [
127+
SizedBox(
128+
height: 100,
129+
width: 100,
130+
child: ClipOval(
131+
child: Image.asset("assets/image/user/sample_user.png", fit: BoxFit.cover)
132+
)
133+
),
134+
SizedBox(width: 16,),
135+
Expanded(
136+
child: Column(
137+
crossAxisAlignment: CrossAxisAlignment.start,
138+
children: [
139+
Text("Vincent Geonwoo", style: GoogleFonts.roboto(color: Colors.grey[800], fontSize: 36, fontWeight: FontWeight.w700)),
140+
Text("Vincent Geonwoo", style: GoogleFonts.roboto(color: Colors.grey[500], fontSize: 16, fontWeight: FontWeight.w400))
141+
// Text("John Doe", style: TextStyle(color: Colors.grey[800], fontFamily: "Roboto"))
142+
],
143+
),
144+
)
145+
],
146+
),
147+
)
148+
],
149+
),
150+
)
151+
);
152+
},
153+
)
154+
],
155+
)
70156
)
71157
);
72158
}

0 commit comments

Comments
 (0)