Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
feelver
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2F-ART
feelver
Commits
4dcf44e2
Commit
4dcf44e2
authored
Aug 10, 2020
by
Mobile : Art
Browse files
Options
Browse Files
Download
Plain Diff
update
parents
190fa8a1
6c2efa65
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
144 deletions
+63
-144
lib/main.dart
+2
-1
lib/ui/account_setting/account_setting_page.dart
+7
-93
lib/ui/edit_profile/edit_profile.dart
+54
-50
No files found.
lib/main.dart
View file @
4dcf44e2
import
'package:feelverapp/ui/account_setting/account_setting_page.dart'
;
import
'package:feelverapp/ui/booking/booking_detail.dart'
;
import
'package:feelverapp/ui/home/home.dart'
;
import
'package:feelverapp/ui/login/login.dart'
;
...
...
@@ -28,7 +29,7 @@ class MyApp extends StatelessWidget {
primarySwatch:
Colors
.
blue
,
),
home:
SplashScreen
Page
()
home:
AccountSetting
Page
()
//home: EditProfile(),
...
...
lib/ui/account_setting/account_setting_page.dart
View file @
4dcf44e2
...
...
@@ -47,7 +47,7 @@ class _AccountSettingPageState extends State<AccountSettingPage> {
SizedBox
(
height:
SizeConfig
.
getHeight
(
65
),),
Card1
(),
Card2
(),
LogoutButton
(),
],
),
),
...
...
@@ -58,29 +58,6 @@ class _AccountSettingPageState extends State<AccountSettingPage> {
}
Widget
LogoutButton
(){
return
Container
(
// color: Colors.red,
margin:
EdgeInsets
.
only
(
right:
SizeConfig
.
getPadding
(
16
)+
10
,
left:
SizeConfig
.
getPadding
(
16
)+
10
,
top:
SizeConfig
.
getPadding
(
10
),
bottom:
SizeConfig
.
getPadding
(
30
)),
height:
SizeConfig
.
getHeight
(
40
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
<
Widget
>[
Container
(
child:
Image
.
asset
(
"assets/images/Icon_close.png"
),
),
SizedBox
(
width:
10
,
),
Text
(
"ออกจากระบบ"
,
style:
TextStyle
(
color:
Color
(
0xffEEAFB7
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w500
),),
],),
);
}
Widget
Card1
(){
return
Column
(
...
...
@@ -119,39 +96,7 @@ class _AccountSettingPageState extends State<AccountSettingPage> {
Divider
(
color:
Color
(
0x11000000
),),
Container
(
// color: Colors.red,
height:
SizeConfig
.
getHeight
(
40
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
<
Widget
>[
Text
(
"ที่อยู่ของฉัน"
,
style:
TextStyle
(
color:
Color
(
0xffEEAFB7
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w500
),),
Icon
(
Icons
.
keyboard_arrow_right
,
color:
Color
(
0xAAA8B8C3
),
size:
SizeConfig
.
getFontSize
(
26
),),
],),
),
Divider
(
color:
Color
(
0x11000000
),),
Container
(
// color: Colors.red,
height:
SizeConfig
.
getHeight
(
40
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
<
Widget
>[
Text
(
"ข้อมูลบัญชีธนาคาร/บัตร"
,
style:
TextStyle
(
color:
Color
(
0xffEEAFB7
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w500
),),
Icon
(
Icons
.
keyboard_arrow_right
,
color:
Color
(
0xAAA8B8C3
),
size:
SizeConfig
.
getFontSize
(
26
),),
],),
),
Divider
(
color:
Color
(
0x11000000
),),
Container
(
// color: Colors.red,
...
...
@@ -213,23 +158,7 @@ class _AccountSettingPageState extends State<AccountSettingPage> {
],),
),
Divider
(
color:
Color
(
0x11000000
),),
Container
(
// color: Colors.red,
height:
SizeConfig
.
getHeight
(
40
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
<
Widget
>[
Text
(
"ตั้งค่าการแชท"
,
style:
TextStyle
(
color:
Color
(
0xffEEAFB7
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w500
),),
Icon
(
Icons
.
keyboard_arrow_right
,
color:
Color
(
0xAAA8B8C3
),
size:
SizeConfig
.
getFontSize
(
26
),),
],),
),
Divider
(
color:
Color
(
0x11000000
),),
Container
(
...
...
@@ -382,15 +311,7 @@ class _AccountSettingPageState extends State<AccountSettingPage> {
fontSize:
SizeConfig
.
getFontSize
(
18
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w500
),),
SizedBox
(
height:
5
,
),
Text
(
"แก้ไขข้อมูลส่วนตัว"
,
style:
TextStyle
(
color:
Colors
.
yellow
,
fontSize:
SizeConfig
.
getFontSize
(
12
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w500
,
decoration:
TextDecoration
.
underline
),
),
SizedBox
(
height:
5
,
),
...
...
@@ -398,14 +319,7 @@ class _AccountSettingPageState extends State<AccountSettingPage> {
),
),
),
Container
(
alignment:
Alignment
.
centerRight
,
//color: Colors.yellow,
width:
85
,
height:
85
,
margin:
EdgeInsets
.
only
(
right:
SizeConfig
.
getPadding
(
16
),
bottom:
10
),
child:
Icon
(
Icons
.
settings
,
color:
Colors
.
white
,),
),
],
),
)
...
...
@@ -426,9 +340,9 @@ class _AccountSettingPageState extends State<AccountSettingPage> {
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
50
),
child:
Image
.
network
(
'https://
scontent.fbkk7-2.fna.fbcdn.net/v/t1.0-9/104204530_3370427592977187_6031309814586327212_o.jpg?_nc_cat=106&_nc_sid=110474&_nc_eui2=AeE2vpoR5NHZLbG8b3YABiSdSsMCoPYM3W1KwwKg9gzdbZuYqR1gPnkW3tGe-TS2Vtphdvn2OuvO2CdDLaCMVvcI&_nc_ohc=T5EK3sWOgtAAX994m4I&_nc_ht=scontent.fbkk7-2.fna&oh=0b3e434546b19e256c07ecd6a4d499fb&oe=5F098A94
'
,
width:
8
5.0
,
height:
8
5.0
,
'https://
backend-uat.feelver.com/storage/2020/08/08_image.jpg
'
,
width:
10
5.0
,
height:
10
5.0
,
fit:
BoxFit
.
cover
,
),
),
...
...
lib/ui/edit_profile/edit_profile.dart
View file @
4dcf44e2
...
...
@@ -10,7 +10,10 @@ import '../../util/SizeConfig.dart';
class
EditProfile
extends
StatefulWidget
{
String
id
;
EditProfile
({
Key
key
,
this
.
id
,})
:
super
(
key:
key
);
EditProfile
({
Key
key
,
this
.
id
,
})
:
super
(
key:
key
);
@override
_EditProfileState
createState
()
=>
_EditProfileState
();
}
...
...
@@ -23,7 +26,7 @@ class _EditProfileState extends State<EditProfile> {
super
.
initState
();
presenter
=
EditprofilePresenter
(
this
);
print
(
"wwww id ="
+
widget
.
id
);
presenter
.
getprofile
(
widget
.
id
);
}
...
...
@@ -31,7 +34,7 @@ class _EditProfileState extends State<EditProfile> {
ImagePickerUtil
(
context
,
(
img
)
{
setState
(()
{
image
=
img
;
presenter
.
imageFile
=
img
;
presenter
.
imageFile
=
img
;
});
});
}
...
...
@@ -79,52 +82,52 @@ class _EditProfileState extends State<EditProfile> {
height:
SizeConfig
.
getWidth
(
100
),
),
)
:
presenter
.
getmodel
.
result
[
0
].
image
==
null
?
Stack
(
children:
<
Widget
>[
Container
(
height:
SizeConfig
.
getWidth
(
80
),
color:
Color
.
fromRGBO
(
106
,
179
,
170
,
1
),
),
Container
(
alignment:
Alignment
.
topCenter
,
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
10
),
top:
SizeConfig
.
getPadding
(
30
)),
child:
Container
(
decoration:
BoxDecoration
(
color:
Color
.
fromRGBO
(
238
,
175
,
183
,
1
),
shape:
BoxShape
.
circle
,
border:
Border
.
all
(
color:
Colors
.
white
,
width:
1.4
)),
:
presenter
.
getmodel
.
result
[
0
].
image
==
null
?
Stack
(
children:
<
Widget
>[
Container
(
height:
SizeConfig
.
getWidth
(
80
),
color:
Color
.
fromRGBO
(
106
,
179
,
170
,
1
),
),
Container
(
alignment:
Alignment
.
topCenter
,
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
10
),
top:
SizeConfig
.
getPadding
(
30
)),
child:
Container
(
decoration:
BoxDecoration
(
color:
Color
.
fromRGBO
(
238
,
175
,
183
,
1
),
shape:
BoxShape
.
circle
,
border:
Border
.
all
(
color:
Colors
.
white
,
width:
1.4
)),
width:
SizeConfig
.
getWidth
(
100
),
height:
SizeConfig
.
getWidth
(
100
),
),
),
Container
(
alignment:
Alignment
.
topCenter
,
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
10
),
top:
SizeConfig
.
getPadding
(
65
)),
child:
Image
.
asset
(
'assets/images/ic_camera_profile.png'
,
width:
SizeConfig
.
getWidth
(
34
),
height:
SizeConfig
.
getWidth
(
34
),
),
)
],
)
:
ClipRRect
(
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
SizeConfig
.
getWidth
(
56
))),
child:
Image
.
network
(
presenter
.
getmodel
.
result
[
0
].
image
,
fit:
BoxFit
.
contain
,
width:
SizeConfig
.
getWidth
(
100
),
height:
SizeConfig
.
getWidth
(
100
),
),
),
Container
(
alignment:
Alignment
.
topCenter
,
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
10
),
top:
SizeConfig
.
getPadding
(
65
)),
child:
Image
.
asset
(
'assets/images/ic_camera_profile.png'
,
width:
SizeConfig
.
getWidth
(
34
),
height:
SizeConfig
.
getWidth
(
34
),
),
)
],
):
ClipRRect
(
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
SizeConfig
.
getWidth
(
56
))),
child:
Image
.
network
(
presenter
.
getmodel
.
result
[
0
].
image
,
fit:
BoxFit
.
contain
,
width:
SizeConfig
.
getWidth
(
100
),
height:
SizeConfig
.
getWidth
(
100
),
),
),
),
Container
(
alignment:
Alignment
.
topLeft
,
...
...
@@ -213,7 +216,9 @@ class _EditProfileState extends State<EditProfile> {
focusedBorder:
UnderlineInputBorder
(
borderSide:
BorderSide
(
color:
Colors
.
black45
),
),
hintText:
'
${presenter.getmodel.result[0].age}
'
,
hintText:
presenter
.
getmodel
.
result
[
0
].
age
==
null
?
" - "
:
'
${presenter.getmodel.result[0].age}
'
,
labelText:
'อายุ'
,
labelStyle:
TextStyle
(
color:
Colors
.
black87
,
...
...
@@ -285,7 +290,9 @@ class _EditProfileState extends State<EditProfile> {
focusedBorder:
UnderlineInputBorder
(
borderSide:
BorderSide
(
color:
Colors
.
black45
),
),
hintText:
'
${presenter.getmodel.result[0].address}
'
,
hintText:
presenter
.
getmodel
.
result
[
0
].
address
==
null
?
" - "
:
'
${presenter.getmodel.result[0].address}
'
,
labelText:
'ที่อยู่'
,
labelStyle:
TextStyle
(
color:
Colors
.
black87
,
...
...
@@ -333,7 +340,6 @@ class _EditProfileState extends State<EditProfile> {
padding:
EdgeInsets
.
all
(
0.0
),
splashColor:
Colors
.
blueAccent
,
onPressed:
()
{
presenter
.
letCheckData
();
print
(
'name=
${presenter.nameCtrl.text}
'
);
print
(
'lastname=
${presenter.lnameCtrl.text}
'
);
...
...
@@ -342,8 +348,6 @@ class _EditProfileState extends State<EditProfile> {
print
(
'sex=
${presenter.selectedSex.text}
'
);
print
(
'add=
${presenter.addresCtrl.text}
'
);
print
(
'age=
${presenter.ageCtrl.text}
'
);
},
shape:
new
RoundedRectangleBorder
(
borderRadius:
new
BorderRadius
.
circular
(
20.0
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment