Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
Crm Attendance
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
Crm Attendance
Commits
8434da32
Commit
8434da32
authored
Jun 09, 2023
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shadow dihilangin
parent
14275ca8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
55 deletions
+55
-55
home.dart
lib/page/home/home.dart
+55
-55
No files found.
lib/page/home/home.dart
View file @
8434da32
...
@@ -153,13 +153,13 @@ class _BodyWidgetState extends State<BodyWidget> {
...
@@ -153,13 +153,13 @@ class _BodyWidgetState extends State<BodyWidget> {
color:
Colors
.
grey
,
color:
Colors
.
grey
,
),
),
color:
ColorManager
.
backgroundColor
,
color:
ColorManager
.
backgroundColor
,
boxShadow:
[
//
boxShadow: [
BoxShadow
(
//
BoxShadow(
color:
Colors
.
grey
.
withOpacity
(
0.3
),
//
color: Colors.grey.withOpacity(0.3),
blurRadius:
2
,
//
blurRadius: 2,
offset:
const
Offset
(
5
,
5
),
//
offset: const Offset(5, 5),
),
//
),
],
//
],
),
),
child:
Container
(
child:
Container
(
width:
double
.
infinity
,
width:
double
.
infinity
,
...
@@ -363,18 +363,18 @@ class _BodyWidgetState extends State<BodyWidget> {
...
@@ -363,18 +363,18 @@ class _BodyWidgetState extends State<BodyWidget> {
}
else
{
}
else
{
ProfileModel
profileUser
=
ProfileModel
profileUser
=
apiResponse
.
data
as
ProfileModel
;
apiResponse
.
data
as
ProfileModel
;
if
(
profileUser
.
attendanceOut
)
{
//
if (profileUser.attendanceOut) {
modalDialogGlobal
(
//
modalDialogGlobal(
context:
context
,
//
context: context,
size:
MediaQuery
.
of
(
context
).
size
,
//
size: MediaQuery.of(context).size,
title:
"Gagal"
,
//
title: "Gagal",
contentBody:
Strings
.
alreadyOut
,
//
contentBody: Strings.alreadyOut,
buttonText:
"Ok"
,
//
buttonText: "Ok",
tapButton:
()
{
//
tapButton: () {
Navigator
.
pop
(
context
);
//
Navigator.pop(context);
});
//
});
return
;
//
return;
}
//
}
if
(
profileUser
.
attendanceIn
==
false
)
{
if
(
profileUser
.
attendanceIn
==
false
)
{
modalDialogGlobal
(
modalDialogGlobal
(
context:
context
,
context:
context
,
...
@@ -446,13 +446,13 @@ class _SelectOutletState extends State<SelectOutlet> {
...
@@ -446,13 +446,13 @@ class _SelectOutletState extends State<SelectOutlet> {
color:
Colors
.
grey
,
color:
Colors
.
grey
,
),
),
color:
ColorManager
.
backgroundColor
,
color:
ColorManager
.
backgroundColor
,
boxShadow:
[
//
boxShadow: [
BoxShadow
(
//
BoxShadow(
color:
Colors
.
grey
.
withOpacity
(
0.3
),
//
color: Colors.grey.withOpacity(0.3),
blurRadius:
2
,
//
blurRadius: 2,
offset:
const
Offset
(
5
,
5
),
//
offset: const Offset(5, 5),
),
//
),
],
//
],
),
),
child:
Container
(
child:
Container
(
width:
double
.
infinity
,
width:
double
.
infinity
,
...
@@ -618,7 +618,7 @@ class _SelectOutletState extends State<SelectOutlet> {
...
@@ -618,7 +618,7 @@ class _SelectOutletState extends State<SelectOutlet> {
children:
[
children:
[
Expanded
(
Expanded
(
child:
Text
(
child:
Text
(
"[
${widget.nearestBranch[selectedBranchFromList].code}
]
${widget.nearestBranch[selectedBranchFromList].name}
"
,
widget
.
nearestBranch
[
selectedBranchFromList
].
name
,
style:
getRegularStyle
(
style:
getRegularStyle
(
color:
ColorManager
.
grey
,
color:
ColorManager
.
grey
,
fontSize:
16
,
fontSize:
16
,
...
@@ -724,13 +724,13 @@ class _WidgetSelectOutletState extends State<WidgetSelectOutlet> {
...
@@ -724,13 +724,13 @@ class _WidgetSelectOutletState extends State<WidgetSelectOutlet> {
color:
ColorManager
.
backgroundColor
,
color:
ColorManager
.
backgroundColor
,
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
),
border:
Border
.
all
(
width:
0.3
,
color:
ColorManager
.
grey
),
border:
Border
.
all
(
width:
0.3
,
color:
ColorManager
.
grey
),
boxShadow:
[
//
boxShadow: [
BoxShadow
(
//
BoxShadow(
color:
Colors
.
grey
.
withOpacity
(
0.3
),
//
color: Colors.grey.withOpacity(0.3),
blurRadius:
2
,
//
blurRadius: 2,
offset:
const
Offset
(
5
,
5
),
//
offset: const Offset(5, 5),
),
//
),
],
//
],
),
),
child:
ListView
.
builder
(
child:
ListView
.
builder
(
padding:
EdgeInsets
.
zero
,
padding:
EdgeInsets
.
zero
,
...
@@ -765,7 +765,7 @@ class _WidgetSelectOutletState extends State<WidgetSelectOutlet> {
...
@@ -765,7 +765,7 @@ class _WidgetSelectOutletState extends State<WidgetSelectOutlet> {
children:
[
children:
[
Expanded
(
Expanded
(
child:
Text
(
child:
Text
(
"[
${widget.nearestBranch[index].code}
]
${widget.nearestBranch[index].name}
"
,
widget
.
nearestBranch
[
index
].
name
,
style:
getRegularStyle
(
style:
getRegularStyle
(
color:
(
selectedOutlet
==
index
)
color:
(
selectedOutlet
==
index
)
?
ColorManager
.
link
?
ColorManager
.
link
...
@@ -916,13 +916,13 @@ class _WidgetSelectShiftState extends State<WidgetSelectShift> {
...
@@ -916,13 +916,13 @@ class _WidgetSelectShiftState extends State<WidgetSelectShift> {
color:
ColorManager
.
backgroundColor
,
color:
ColorManager
.
backgroundColor
,
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
),
border:
Border
.
all
(
width:
0.3
,
color:
ColorManager
.
grey
),
border:
Border
.
all
(
width:
0.3
,
color:
ColorManager
.
grey
),
boxShadow:
[
//
boxShadow: [
BoxShadow
(
//
BoxShadow(
color:
Colors
.
grey
.
withOpacity
(
0.3
),
//
color: Colors.grey.withOpacity(0.3),
blurRadius:
2
,
//
blurRadius: 2,
offset:
const
Offset
(
5
,
5
),
//
offset: const Offset(5, 5),
),
//
),
],
//
],
),
),
child:
ListView
.
builder
(
child:
ListView
.
builder
(
padding:
EdgeInsets
.
zero
,
padding:
EdgeInsets
.
zero
,
...
@@ -1021,19 +1021,19 @@ class _WidgetSelectShiftState extends State<WidgetSelectShift> {
...
@@ -1021,19 +1021,19 @@ class _WidgetSelectShiftState extends State<WidgetSelectShift> {
});
});
}
else
{
}
else
{
ProfileModel
profileUser
=
apiResponse
.
data
as
ProfileModel
;
ProfileModel
profileUser
=
apiResponse
.
data
as
ProfileModel
;
if
(
profileUser
.
attendanceIn
)
{
//
if (profileUser.attendanceIn) {
modalDialogGlobal
(
//
modalDialogGlobal(
context:
context
,
//
context: context,
size:
MediaQuery
.
of
(
context
).
size
,
//
size: MediaQuery.of(context).size,
title:
"Gagal"
,
//
title: "Gagal",
contentBody:
Strings
.
alreadyIn
,
//
contentBody: Strings.alreadyIn,
buttonText:
"Ok"
,
//
buttonText: "Ok",
tapButton:
()
{
//
tapButton: () {
Navigator
.
pop
(
context
);
//
Navigator.pop(context);
Navigator
.
pop
(
context
);
//
Navigator.pop(context);
});
//
});
return
;
//
return;
}
//
}
Navigator
.
popAndPushNamed
(
Navigator
.
popAndPushNamed
(
context
,
context
,
Routes
.
absentCamera
,
Routes
.
absentCamera
,
...
...
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