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
0a328c71
Commit
0a328c71
authored
Sep 13, 2022
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit home
parent
5e84548b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
helper.dart
lib/helper/helper.dart
+2
-0
style.dart
lib/helper/widget/style.dart
+27
-0
new_home2.dart
lib/ui/home/new_home2.dart
+28
-0
No files found.
lib/helper/helper.dart
View file @
0a328c71
...
@@ -443,6 +443,8 @@ const String listPesanan = '\uf022';
...
@@ -443,6 +443,8 @@ const String listPesanan = '\uf022';
const
double
listPesananSize
=
0.04
;
const
double
listPesananSize
=
0.04
;
const
double
listPesananSizeViewBill
=
0.08
;
const
double
listPesananSizeViewBill
=
0.08
;
const
String
shoppingCart
=
'
\
uf07a'
;
//** add remove menu */
//** add remove menu */
const
double
addRemoveQuantityButtonSize
=
0.025
;
const
double
addRemoveQuantityButtonSize
=
0.025
;
...
...
lib/helper/widget/style.dart
View file @
0a328c71
...
@@ -181,6 +181,18 @@ TextStyle addButtonMenu({
...
@@ -181,6 +181,18 @@ TextStyle addButtonMenu({
);
);
}
}
TextStyle
addButtonBotoomCart
(
{
font
=
16
,
Color
color
=
textInButton
,
})
{
return
TextStyle
(
fontFamily:
'Roboto'
,
fontSize:
font
,
fontWeight:
FontWeight
.
w600
,
color:
color
,
);
}
Text
fontAwesome
(
BuildContext
context
,
String
unicode
,
double
fontSize
,
Text
fontAwesome
(
BuildContext
context
,
String
unicode
,
double
fontSize
,
{
Color
?
color
,
isBold
=
true
})
{
{
Color
?
color
,
isBold
=
true
})
{
// double widthScreens = responsiveWidthScreen(context);
// double widthScreens = responsiveWidthScreen(context);
...
@@ -196,6 +208,21 @@ Text fontAwesome(BuildContext context, String unicode, double fontSize,
...
@@ -196,6 +208,21 @@ Text fontAwesome(BuildContext context, String unicode, double fontSize,
);
);
}
}
Text
fontAwesomeCart
(
BuildContext
context
,
String
unicode
,
double
fontSize
,
{
Color
?
color
,
isBold
=
true
})
{
// double widthScreens = responsiveWidthScreen(context);
// double fontSizeResponsive = MediaQuery.of(context).size.height * fontSize;
return
Text
(
unicode
,
style:
TextStyle
(
fontFamily:
'FontAwesome'
,
fontSize:
fontSize
,
color:
color
,
fontWeight:
(
isBold
)
?
FontWeight
.
w600
:
FontWeight
.
w400
,
),
);
}
Text
textCategory
(
BuildContext
context
,
String
text
)
{
Text
textCategory
(
BuildContext
context
,
String
text
)
{
return
defaultText
(
context
,
text
,
style:
textStyleCategoryMenu
(
context
));
return
defaultText
(
context
,
text
,
style:
textStyleCategoryMenu
(
context
));
}
}
...
...
lib/ui/home/new_home2.dart
View file @
0a328c71
...
@@ -480,6 +480,34 @@ class _NewHome2State extends State<NewHome2> {
...
@@ -480,6 +480,34 @@ class _NewHome2State extends State<NewHome2> {
BorderRadius
.
circular
(
28
),
BorderRadius
.
circular
(
28
),
color:
Colors
.
white
,
color:
Colors
.
white
,
),
),
child:
Container
(
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
26
,
vertical:
8
),
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
defaultText
(
context
,
"Pesan"
,
style:
addButtonBotoomCart
(
color:
buttonColor
,
),
),
const
SizedBox
(
width:
7
,
),
// fontAwesome(
// context,
// shoppingCart,
// 1,
// color: buttonColor,
// )
],
),
),
),
),
const
SizedBox
(
const
SizedBox
(
width:
23
,
width:
23
,
...
...
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