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
8086b2fd
Commit
8086b2fd
authored
Oct 03, 2022
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
harga coret
parent
769f53cd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
12 deletions
+51
-12
style.dart
lib/helper/widget/style.dart
+4
-0
fav_grid_menu.dart
lib/ui/home/fav_grid_menu.dart
+24
-6
menu_list_utama.dart
lib/ui/home/menu_list_utama.dart
+23
-6
No files found.
lib/helper/widget/style.dart
View file @
8086b2fd
...
@@ -157,12 +157,14 @@ TextStyle menuNameGridFav(
...
@@ -157,12 +157,14 @@ TextStyle menuNameGridFav(
TextStyle
menuPriceGridFav
(
{
TextStyle
menuPriceGridFav
(
{
font
=
10
,
font
=
10
,
Color
color
=
textColorBlack
,
Color
color
=
textColorBlack
,
TextDecoration
?
decoration
,
})
{
})
{
return
TextStyle
(
return
TextStyle
(
fontFamily:
(
fontFamily
==
''
)
?
null
:
fontFamily
,
fontFamily:
(
fontFamily
==
''
)
?
null
:
fontFamily
,
fontSize:
font
,
fontSize:
font
,
fontWeight:
FontWeight
.
w400
,
fontWeight:
FontWeight
.
w400
,
color:
color
,
color:
color
,
decoration:
decoration
,
);
);
}
}
...
@@ -266,12 +268,14 @@ TextStyle amountMenuStyle({
...
@@ -266,12 +268,14 @@ TextStyle amountMenuStyle({
font
=
16
,
font
=
16
,
Color
color
=
textColorBlack
,
Color
color
=
textColorBlack
,
FontWeight
fontWeight
=
FontWeight
.
w300
,
FontWeight
fontWeight
=
FontWeight
.
w300
,
TextDecoration
?
decoration
,
})
{
})
{
return
TextStyle
(
return
TextStyle
(
fontFamily:
(
fontFamily
==
''
)
?
null
:
fontFamily
,
fontFamily:
(
fontFamily
==
''
)
?
null
:
fontFamily
,
fontSize:
font
,
fontSize:
font
,
fontWeight:
fontWeight
,
fontWeight:
fontWeight
,
color:
color
,
color:
color
,
decoration:
decoration
,
);
);
}
}
...
...
lib/ui/home/fav_grid_menu.dart
View file @
8086b2fd
...
@@ -167,13 +167,31 @@ class FavGridMenu extends StatelessWidget {
...
@@ -167,13 +167,31 @@ class FavGridMenu extends StatelessWidget {
height:
20
,
height:
20
,
child:
Align
(
child:
Align
(
alignment:
Alignment
.
centerRight
,
alignment:
Alignment
.
centerRight
,
child:
defaultText
(
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
end
,
children:
[
defaultText
(
context
,
'Rp
${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}
'
,
maxLines:
3
,
overFlow:
TextOverflow
.
ellipsis
,
style:
menuPriceGridFav
(
font:
7
,
decoration:
TextDecoration
.
lineThrough
,
),
),
const
SizedBox
(
width:
5
,
),
defaultText
(
context
,
context
,
'Rp
${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}
'
,
'Rp
${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}
'
,
maxLines:
3
,
maxLines:
3
,
overFlow:
TextOverflow
.
ellipsis
,
overFlow:
TextOverflow
.
ellipsis
,
style:
menuPriceGridFav
(),
style:
menuPriceGridFav
(),
),
),
],
),
),
),
),
),
addRemoveQuantity
(
context
,
categoryFavAfterSelect
[
i
])
addRemoveQuantity
(
context
,
categoryFavAfterSelect
[
i
])
...
...
lib/ui/home/menu_list_utama.dart
View file @
8086b2fd
...
@@ -91,12 +91,29 @@ class MenuListUtama extends StatelessWidget {
...
@@ -91,12 +91,29 @@ class MenuListUtama extends StatelessWidget {
const
SizedBox
(
const
SizedBox
(
height:
4
,
height:
4
,
),
),
Row
(
children:
[
defaultText
(
defaultText
(
maxLines:
1
,
maxLines:
1
,
overFlow:
TextOverflow
.
ellipsis
,
overFlow:
TextOverflow
.
ellipsis
,
context
,
context
,
'Rp
${formatNumber().format(amountParseToInt(categoryNonFav[i].price))}
'
,
'Rp
${formatNumber().format(amountParseToInt(categoryNonFav[i].price))}
'
,
style:
amountMenuStyle
(),
style:
amountMenuStyle
(),
),
const
SizedBox
(
width:
5
,
),
defaultText
(
maxLines:
1
,
overFlow:
TextOverflow
.
ellipsis
,
context
,
'Rp
${formatNumber().format(amountParseToInt(categoryNonFav[i].originalPrice))}
'
,
style:
amountMenuStyle
(
font:
12
,
decoration:
TextDecoration
.
lineThrough
),
),
],
)
)
],
],
),
),
...
...
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