Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
Tour Travel Agency AGR
Project
Project
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
Dio Maulana
Tour Travel Agency AGR
Commits
37ab7176
Commit
37ab7176
authored
May 25, 2023
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profile page
parent
0d911ba8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
155 additions
and
4 deletions
+155
-4
edit.png
assets/icons/edit.png
+0
-0
phone.png
assets/icons/phone.png
+0
-0
profile.jpg
assets/images/profile.jpg
+0
-0
home.dart
lib/page/home/home.dart
+14
-4
profile.dart
lib/page/profile/profile.dart
+133
-0
assets.dart
lib/resource/assets.dart
+3
-0
routes.dart
lib/resource/routes.dart
+3
-0
size.dart
lib/resource/size.dart
+2
-0
No files found.
assets/icons/edit.png
0 → 100644
View file @
37ab7176
279 Bytes
assets/icons/phone.png
0 → 100644
View file @
37ab7176
257 Bytes
assets/images/profile.jpg
0 → 100644
View file @
37ab7176
This diff is collapsed.
Click to expand it.
lib/page/home/home.dart
View file @
37ab7176
...
...
@@ -5,6 +5,7 @@ import 'package:tour_travel_agr/helper/widget_responsive.dart';
import
'package:tour_travel_agr/resource/assets.dart'
;
import
'package:tour_travel_agr/resource/colors.dart'
;
import
'package:tour_travel_agr/resource/font.dart'
;
import
'package:tour_travel_agr/resource/routes.dart'
;
import
'package:tour_travel_agr/resource/size.dart'
;
import
'package:tour_travel_agr/resource/style.dart'
;
...
...
@@ -122,10 +123,19 @@ class BodyWIdget extends StatelessWidget {
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
CardSectionHome
(
title:
"Profile"
,
subtitle:
"List Report Harian, mingguan dan Bulanan"
,
logo:
Assets
.
profileIcon
,
GestureDetector
(
onTap:
()
{
Navigator
.
pushNamed
(
context
,
Routes
.
profileRoute
,
);
},
child:
CardSectionHome
(
title:
"Profile"
,
subtitle:
"List Report Harian, mingguan dan Bulanan"
,
logo:
Assets
.
profileIcon
,
),
),
CardSectionHome
(
title:
"Log out"
,
...
...
lib/page/profile/profile.dart
0 → 100644
View file @
37ab7176
// ignore_for_file: avoid_unnecessary_containers, sized_box_for_whitespace
import
'package:flutter/material.dart'
;
import
'package:tour_travel_agr/resource/assets.dart'
;
import
'package:tour_travel_agr/resource/colors.dart'
;
import
'package:tour_travel_agr/resource/size.dart'
;
import
'package:tour_travel_agr/resource/style.dart'
;
class
ProfileView
extends
StatelessWidget
{
const
ProfileView
({
super
.
key
});
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
backgroundColor:
ColorManager
.
backgroundColor
,
body:
Stack
(
children:
[
Column
(
children:
[
Container
(
width:
double
.
infinity
,
height:
318
+
AppPadding
.
safeAreaTop
(
context
),
margin:
EdgeInsets
.
all
(
AppPadding
.
p8
,
),
decoration:
BoxDecoration
(
color:
ColorManager
.
primary
,
borderRadius:
BorderRadius
.
circular
(
20
,
),
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
Container
(
margin:
EdgeInsets
.
only
(
top:
AppMargin
.
m25
,
),
child:
Row
(
children:
[
const
Spacer
(),
Container
(
width:
24
,
height:
24
,
child:
Image
(
fit:
BoxFit
.
fill
,
image:
AssetImage
(
Assets
.
editIcon
,
),
),
),
const
SizedBox
(
width:
12
,
)
],
),
),
Container
(
width:
120
,
height:
120
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
100
,
),
image:
DecorationImage
(
fit:
BoxFit
.
fill
,
image:
AssetImage
(
Assets
.
profileSample
,
),
),
),
),
SizedBox
(
height:
AppMargin
.
m16
,
),
Text
(
"Dio Maulana"
,
style:
getSemiBoldStyle
(
color:
Colors
.
white
,
fontSize:
20
,
),
),
SizedBox
(
height:
AppMargin
.
m8
,
),
Text
(
"ID 33040000000000000083"
,
style:
getRegularStyle
(
color:
Colors
.
white
,
fontSize:
12
,
),
),
const
SizedBox
(
height:
40
,
),
Row
(
children:
[
Image
(
width:
20
,
height:
20
,
image:
AssetImage
(
Assets
.
phoneIcon
,
),
),
Text
(
"+62-8127-535-1256"
,
style:
getRegularStyle
(
color:
Colors
.
white
,
),
)
],
)
],
),
),
],
),
Positioned
(
left:
0
,
top:
0
,
child:
Container
(
child:
Image
(
image:
AssetImage
(
Assets
.
elipse
,
),
),
),
)
],
),
);
}
}
lib/resource/assets.dart
View file @
37ab7176
...
...
@@ -10,10 +10,13 @@ class Assets {
static
String
forgotPassword
=
"
${rootImage}
forgot_password.png"
;
static
String
resetPassword
=
"
${rootImage}
reset_password.png"
;
static
String
homeBanner
=
"
${rootImage}
home_banner.png"
;
static
String
profileSample
=
"
${rootImage}
profile.jpg"
;
// icons
static
String
reimburseIcon
=
"
${rootIcon}
reimburse.png"
;
static
String
profileIcon
=
"
${rootIcon}
profile.png"
;
static
String
historyIcon
=
"
${rootIcon}
history.png"
;
static
String
logoutIcon
=
"
${rootIcon}
logout.png"
;
static
String
editIcon
=
"
${rootIcon}
edit.png"
;
static
String
phoneIcon
=
"
${rootIcon}
phone.png"
;
}
lib/resource/routes.dart
View file @
37ab7176
...
...
@@ -3,6 +3,7 @@ import 'package:tour_travel_agr/page/forgot_password/forgot_password.dart';
import
'package:tour_travel_agr/page/login/login.dart'
;
import
'package:tour_travel_agr/page/otp_verification/otp_verification.dart'
;
import
'package:tour_travel_agr/page/home/home.dart'
;
import
'package:tour_travel_agr/page/profile/profile.dart'
;
import
'package:tour_travel_agr/page/register/register.dart'
;
import
'package:tour_travel_agr/page/reset_password/reset_password.dart'
;
import
'package:tour_travel_agr/page/splash/splash.dart'
;
...
...
@@ -37,6 +38,8 @@ class RouteGenerator {
return
pageRouteCustom
(
const
ResetPasswordView
());
case
Routes
.
homeRoute
:
return
pageRouteCustom
(
const
HomeView
());
case
Routes
.
profileRoute
:
return
pageRouteCustom
(
const
ProfileView
());
default
:
return
unDefinedRoute
();
}
...
...
lib/resource/size.dart
View file @
37ab7176
...
...
@@ -9,6 +9,7 @@ class AppPadding {
return
MediaQuery
.
of
(
context
).
padding
.
bottom
;
}
static
double
p8
=
8
;
static
double
p12
=
12
;
static
double
p20
=
20
;
}
...
...
@@ -20,6 +21,7 @@ class AppMargin {
static
double
m10
=
10
;
static
double
m12
=
12
;
static
double
m16
=
16
;
static
double
m18
=
18
;
static
double
m20
=
20
;
static
double
m25
=
25
;
}
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