Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
B
Byodv2
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
Byodv2
Commits
3dfdbb0d
Commit
3dfdbb0d
authored
Oct 19, 2022
by
Jasa Digital
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pickup state fixed
parent
375f32da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
delivery_pickup_state.dart
lib/ui/viewbill/delivery_pickup_state.dart
+7
-6
No files found.
lib/ui/viewbill/delivery_pickup_state.dart
View file @
3dfdbb0d
...
...
@@ -334,7 +334,7 @@ class PickUpState extends StatelessWidget {
axis:
TimelineAxis
.
horizontal
,
endChild:
defaultText
(
context
,
'
Ready For Picku
p'
,
'
Order Picked U
p'
,
maxLines:
2
,
textAlign:
TextAlign
.
center
,
overFlow:
TextOverflow
.
ellipsis
,
...
...
@@ -350,7 +350,9 @@ class PickUpState extends StatelessWidget {
width:
42
,
height:
42
,
decoration:
BoxDecoration
(
color:
getColorStatusPickUp
(
dataBill
[
0
].
state
),
color:
(
dataBill
[
0
].
state
==
orderStateDone
)
?
successColor
:
disabledColor
,
shape:
BoxShape
.
circle
,
),
child:
const
Center
(
...
...
@@ -369,10 +371,9 @@ class PickUpState extends StatelessWidget {
}
Color
getColorStatusPickUp
(
int
orderState
)
{
if
(
orderState
!=
orderStateReady
&&
orderState
!
=
orderStateDone
)
{
return
disabled
Color
;
}
else
if
(
orderState
==
orderStateReady
&&
orderState
!=
orderStateDone
)
{
if
(
orderState
==
orderStateReady
||
orderState
=
=
orderStateDone
)
{
return
success
Color
;
}
else
{
return
disabledColor
;
}
return
successColor
;
}
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