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
5e84548b
Commit
5e84548b
authored
Sep 13, 2022
by
Dio Maulana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit home screen
parent
08aef001
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1453 additions
and
636 deletions
+1453
-636
fav_selected_bar.dart
lib/bloc/fav_selected_bar.dart
+9
-0
menu_selected_bar.dart
lib/bloc/menu_selected_bar.dart
+9
-0
style.dart
lib/helper/widget/style.dart
+72
-0
main.dart
lib/main.dart
+4
-0
category_list.dart
lib/models/category_list.dart
+6
-1
cat_list.dart
lib/ui/home/cat_list.dart
+58
-45
fav_grid_menu.dart
lib/ui/home/fav_grid_menu.dart
+168
-0
fav_list.dart
lib/ui/home/fav_list.dart
+55
-52
menu_list_utama.dart
lib/ui/home/menu_list_utama.dart
+227
-0
new_home.dart
lib/ui/home/new_home.dart
+351
-351
new_home2.dart
lib/ui/home/new_home2.dart
+488
-181
screen_responsive.dart
lib/ui/screen_responsive.dart
+6
-6
No files found.
lib/bloc/fav_selected_bar.dart
0 → 100644
View file @
5e84548b
import
'package:flutter_bloc/flutter_bloc.dart'
;
class
FavSelectedBar
extends
Cubit
<
List
<
dynamic
>>
{
FavSelectedBar
()
:
super
([
0
]);
// default list pertama String 0
void
selectedBarFav
(
int
indexBar
,
String
id
)
{
emit
([
indexBar
,
id
]);
// return index dan ID
}
}
lib/bloc/menu_selected_bar.dart
0 → 100644
View file @
5e84548b
import
'package:flutter_bloc/flutter_bloc.dart'
;
class
MenuSelectedBar
extends
Cubit
<
List
<
dynamic
>>
{
MenuSelectedBar
()
:
super
([
0
]);
// default list pertama String 0
void
selectedBarMenu
(
int
indexBar
,
String
name
)
{
emit
([
indexBar
,
name
]);
// return index dan ID
}
}
lib/helper/widget/style.dart
View file @
5e84548b
...
@@ -109,6 +109,78 @@ TextStyle categoryStyle({
...
@@ -109,6 +109,78 @@ TextStyle categoryStyle({
);
);
}
}
TextStyle
subCategoryStyle
(
{
font
=
28
,
Color
color
=
textColorBlack
,
})
{
return
TextStyle
(
fontFamily:
'Roboto'
,
fontSize:
font
,
fontWeight:
FontWeight
.
w500
,
color:
color
,
);
}
TextStyle
categoryNameStyle
(
{
font
=
20
,
Color
color
=
textColorBlack
,
})
{
return
TextStyle
(
fontFamily:
(
fontFamily
==
''
)
?
null
:
fontFamily
,
fontSize:
font
,
fontWeight:
FontWeight
.
w600
,
color:
color
,
);
}
TextStyle
menuNameStyle
(
{
font
=
16
,
Color
color
=
textColorBlack
,
})
{
return
TextStyle
(
fontFamily:
'Roboto'
,
fontSize:
font
,
fontWeight:
FontWeight
.
w500
,
color:
color
,
);
}
TextStyle
deskripsiMenuStyle
(
{
font
=
12
,
Color
color
=
textColorBlack
,
})
{
return
TextStyle
(
fontFamily:
'Roboto'
,
fontSize:
font
,
fontWeight:
FontWeight
.
w300
,
color:
color
,
);
}
TextStyle
amountMenuStyle
(
{
font
=
16
,
Color
color
=
textColorBlack
,
})
{
return
TextStyle
(
fontFamily:
(
fontFamily
==
''
)
?
null
:
fontFamily
,
fontSize:
font
,
fontWeight:
FontWeight
.
w300
,
color:
color
,
);
}
TextStyle
addButtonMenu
(
{
font
=
12
,
Color
color
=
textInButton
,
})
{
return
TextStyle
(
fontFamily:
'OpenSans'
,
fontSize:
font
,
fontWeight:
FontWeight
.
w400
,
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);
...
...
lib/main.dart
View file @
5e84548b
...
@@ -19,9 +19,11 @@ import 'package:uuid/uuid.dart';
...
@@ -19,9 +19,11 @@ import 'package:uuid/uuid.dart';
import
'package:web_browser_detect/web_browser_detect.dart'
;
import
'package:web_browser_detect/web_browser_detect.dart'
;
import
'bloc/branch_exist.dart'
;
import
'bloc/branch_exist.dart'
;
import
'bloc/fav_selected_bar.dart'
;
import
'bloc/feedback_option.dart'
;
import
'bloc/feedback_option.dart'
;
import
'bloc/feedback_select.dart'
;
import
'bloc/feedback_select.dart'
;
import
'bloc/filter_menu.dart'
;
import
'bloc/filter_menu.dart'
;
import
'bloc/menu_selected_bar.dart'
;
import
'bloc/order_detail_variant.dart'
;
import
'bloc/order_detail_variant.dart'
;
import
'bloc/order_variant_temporary.dart'
;
import
'bloc/order_variant_temporary.dart'
;
import
'bloc/order_variant_value.dart'
;
import
'bloc/order_variant_value.dart'
;
...
@@ -152,6 +154,8 @@ class MyApp extends StatelessWidget {
...
@@ -152,6 +154,8 @@ class MyApp extends StatelessWidget {
BlocProvider
(
create:
(
_
)
=>
FeedbackSelect
()),
BlocProvider
(
create:
(
_
)
=>
FeedbackSelect
()),
BlocProvider
(
create:
(
_
)
=>
FilterMenuBloc
()),
BlocProvider
(
create:
(
_
)
=>
FilterMenuBloc
()),
BlocProvider
(
create:
(
_
)
=>
VoucherListBloc
()),
BlocProvider
(
create:
(
_
)
=>
VoucherListBloc
()),
BlocProvider
(
create:
(
_
)
=>
FavSelectedBar
()),
BlocProvider
(
create:
(
_
)
=>
MenuSelectedBar
()),
],
],
child:
MaterialApp
(
child:
MaterialApp
(
title:
(
title
==
null
)
?
defaultTitle
:
title
,
title:
(
title
==
null
)
?
defaultTitle
:
title
,
...
...
lib/models/category_list.dart
View file @
5e84548b
class
CategoryList
{
class
CategoryList
{
final
String
name
;
final
String
name
;
final
String
id
;
CategoryList
({
required
this
.
name
});
CategoryList
({
required
this
.
name
,
required
this
.
id
,
});
factory
CategoryList
.
createCategoryList
(
Map
<
String
,
dynamic
>
json
)
{
factory
CategoryList
.
createCategoryList
(
Map
<
String
,
dynamic
>
json
)
{
return
CategoryList
(
return
CategoryList
(
id:
json
[
'id'
],
name:
json
[
'name'
],
name:
json
[
'name'
],
);
);
}
}
...
...
lib/ui/home/cat_list.dart
View file @
5e84548b
// ignore_for_file: must_be_immutable
import
'package:byod/bloc/menu_selected_bar.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_bloc/flutter_bloc.dart'
;
import
'../../helper/helper.dart'
;
import
'../../helper/helper.dart'
;
import
'../../helper/widget/style.dart'
;
import
'../../helper/widget/style.dart'
;
import
'../../models/category_list.dart'
;
class
CategoryList
extends
StatefulWidget
{
class
CategoryListHome
extends
StatefulWidget
{
const
CategoryList
({
List
<
CategoryList
>
categoryList
;
CategoryListHome
({
Key
?
key
,
Key
?
key
,
required
this
.
categoryList
,
})
:
super
(
key:
key
);
})
:
super
(
key:
key
);
@override
@override
State
<
CategoryList
>
createState
()
=>
_CategoryList
State
();
State
<
CategoryList
Home
>
createState
()
=>
_CategoryListHome
State
();
}
}
class
_CategoryList
State
extends
State
<
CategoryList
>
{
class
_CategoryList
HomeState
extends
State
<
CategoryListHome
>
{
int
selectedIndex
=
0
;
int
selectedIndex
=
0
;
List
<
String
>
catMenu
=
[
List
<
String
>
catMenu
=
[
'All Item'
,
'All Item'
,
...
@@ -24,26 +31,30 @@ class _CategoryListState extends State<CategoryList> {
...
@@ -24,26 +31,30 @@ class _CategoryListState extends State<CategoryList> {
];
];
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
BlocBuilder
<
MenuSelectedBar
,
List
<
dynamic
>>(
builder:
(
contextMenuSelectedBar
,
selectedBarIndex
)
{
selectedIndex
=
selectedBarIndex
[
0
];
return
ListView
.
builder
(
return
ListView
.
builder
(
scrollDirection:
Axis
.
horizontal
,
scrollDirection:
Axis
.
horizontal
,
itemCount:
catMenu
.
length
,
itemCount:
widget
.
categoryList
.
length
,
itemBuilder:
(
context
,
i
)
{
itemBuilder:
(
context
,
i
)
{
return
Container
(
return
GestureDetector
(
onTap:
()
{
context
.
read
<
MenuSelectedBar
>()
.
selectedBarMenu
(
i
,
widget
.
categoryList
[
i
].
name
);
},
child:
Container
(
color:
backgroundColor
,
margin:
EdgeInsets
.
only
(
margin:
EdgeInsets
.
only
(
left:
(
i
==
0
)
?
0
:
28.335
,
left:
(
i
==
0
)
?
0
:
28.335
,
right:
(
i
==
catMenu
.
length
-
1
)
?
0
:
28.335
),
right:
(
i
==
catMenu
.
length
-
1
)
?
0
:
28.335
),
child:
GestureDetector
(
onTap:
()
{
setState
(()
{
selectedIndex
=
i
;
});
},
child:
Column
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
children:
[
defaultText
(
defaultText
(
context
,
context
,
catMenu
[
i
]
,
widget
.
categoryList
[
i
].
name
,
style:
catNameStyle
(),
style:
catNameStyle
(),
),
),
AnimatedSwitcher
(
AnimatedSwitcher
(
...
@@ -69,5 +80,7 @@ class _CategoryListState extends State<CategoryList> {
...
@@ -69,5 +80,7 @@ class _CategoryListState extends State<CategoryList> {
);
);
},
},
);
);
},
);
}
}
}
}
lib/ui/home/fav_grid_menu.dart
0 → 100644
View file @
5e84548b
import
'package:flutter/material.dart'
;
import
'../../helper/helper.dart'
;
import
'../../helper/widget/style.dart'
;
import
'../../models/filter_menu.dart'
;
class
FavGridMenu
extends
StatelessWidget
{
const
FavGridMenu
({
Key
?
key
,
required
this
.
categoryFavAfterSelect
,
required
this
.
widthGrid
,
required
this
.
paddingLeftRigthGrid
,
required
this
.
i
,
})
:
super
(
key:
key
);
final
List
<
FilterMenu
>
categoryFavAfterSelect
;
final
double
widthGrid
;
final
double
paddingLeftRigthGrid
;
final
int
i
;
@override
Widget
build
(
BuildContext
context
)
{
bool
addCondition
=
false
;
return
Container
(
margin:
EdgeInsets
.
only
(
left:
(
i
==
0
)
?
0
:
8
,
// paling awal gausah dikasih margin
right:
(
i
==
categoryFavAfterSelect
.
length
-
1
)
?
0
:
8
,
// paling akhir gausah dikasi margin
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
5
),
color:
gridCardBackgroundColor
,
),
height:
double
.
infinity
,
width:
widthGrid
,
child:
Container
(
margin:
EdgeInsets
.
only
(
top:
8
,
left:
paddingLeftRigthGrid
,
right:
paddingLeftRigthGrid
,
bottom:
16
,
),
// color: Colors.red,
child:
Column
(
children:
[
Container
(
width:
widthGrid
-
(
2
*
paddingLeftRigthGrid
),
height:
widthGrid
-
(
2
*
paddingLeftRigthGrid
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
// color: Colors.red,
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
),
child:
Image
(
fit:
BoxFit
.
fill
,
image:
NetworkImage
(
categoryFavAfterSelect
[
i
].
imageUrlMedium
),
),
),
),
const
SizedBox
(
height:
3
,
),
Container
(
width:
widthGrid
-
(
2
*
paddingLeftRigthGrid
),
height:
28
,
// color: Colors.blue,
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
end
,
children:
[
Expanded
(
child:
defaultText
(
context
,
categoryFavAfterSelect
[
i
].
name
,
maxLines:
2
,
overFlow:
TextOverflow
.
ellipsis
,
style:
menuNameGridFav
(),
),
),
Container
(
width:
40
,
child:
defaultText
(
context
,
'Rp
${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}
'
,
maxLines:
3
,
overFlow:
TextOverflow
.
ellipsis
,
style:
menuPriceGridFav
(),
),
)
],
),
),
const
SizedBox
(
height:
16
,
),
(
addCondition
)
?
Container
(
height:
30
,
width:
widthGrid
-
(
2
*
paddingLeftRigthGrid
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
6
),
color:
buttonColor
,
),
child:
Center
(
child:
defaultText
(
context
,
'Tambah'
,
style:
addButtonGridFav
(),
),
),
)
:
Container
(
height:
30
,
width:
widthGrid
-
(
2
*
paddingLeftRigthGrid
),
child:
Row
(
children:
[
Container
(
width:
27
,
height:
24
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
6
),
color:
buttonColor
,
),
child:
const
Center
(
child:
Image
(
width:
13.33
,
height:
13.33
,
color:
textInButton
,
image:
AssetImage
(
'assets/icons/note.png'
),
),
),
),
const
SizedBox
(
width:
5
,
),
Container
(
width:
22
,
height:
22
,
child:
const
Image
(
image:
AssetImage
(
'assets/icons/minus.png'
),
),
),
Expanded
(
child:
Center
(
child:
defaultText
(
context
,
'10'
,
style:
amountGridFav
(),
),
),
),
Container
(
width:
22
,
height:
22
,
child:
const
Image
(
image:
AssetImage
(
'assets/icons/plus.png'
),
),
)
],
),
)
],
),
),
);
}
}
lib/ui/home/fav_list.dart
View file @
5e84548b
// ignore_for_file: must_be_immutable
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_bloc/flutter_bloc.dart'
;
import
'../../bloc/fav_selected_bar.dart'
;
import
'../../helper/helper.dart'
;
import
'../../helper/helper.dart'
;
import
'../../helper/widget/style.dart'
;
import
'../../helper/widget/style.dart'
;
import
'../../models/fav_group.dart'
;
class
FavoriteList
extends
StatefulWidget
{
class
FavoriteList
extends
StatefulWidget
{
const
FavoriteList
({
List
<
FavoriteGroup
>
favoriteList
;
Key
?
key
,
FavoriteList
({
Key
?
key
,
required
this
.
favoriteList
})
:
super
(
key:
key
);
})
:
super
(
key:
key
);
@override
@override
State
<
FavoriteList
>
createState
()
=>
_FavoriteListState
();
State
<
FavoriteList
>
createState
()
=>
_FavoriteListState
();
...
@@ -14,36 +18,33 @@ class FavoriteList extends StatefulWidget {
...
@@ -14,36 +18,33 @@ class FavoriteList extends StatefulWidget {
class
_FavoriteListState
extends
State
<
FavoriteList
>
{
class
_FavoriteListState
extends
State
<
FavoriteList
>
{
int
selectedIndex
=
0
;
int
selectedIndex
=
0
;
List
<
String
>
favMenu
=
[
'All'
,
'Popular'
,
'Favorite This Month'
,
'Menu Lainnya'
,
'Menu Lainnya'
,
'Menu Lainnya'
];
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
BlocBuilder
<
FavSelectedBar
,
List
<
dynamic
>>(
builder:
(
contextSelectedBar
,
selectedBarIndex
)
{
selectedIndex
=
selectedBarIndex
[
0
];
return
ListView
.
builder
(
return
ListView
.
builder
(
scrollDirection:
Axis
.
horizontal
,
scrollDirection:
Axis
.
horizontal
,
itemCount:
favMenu
.
length
,
itemCount:
widget
.
favoriteList
.
length
,
itemBuilder:
(
context
,
i
)
{
itemBuilder:
(
context
,
i
)
{
return
Container
(
return
GestureDetector
(
margin:
EdgeInsets
.
only
(
left:
(
i
==
0
)
?
0
:
12.5
,
right:
(
i
==
favMenu
.
length
-
1
)
?
0
:
12.5
),
child:
GestureDetector
(
onTap:
()
{
onTap:
()
{
setState
(()
{
context
selectedIndex
=
i
;
.
read
<
FavSelectedBar
>()
}
);
.
selectedBarFav
(
i
,
widget
.
favoriteList
[
i
].
id
);
},
},
child:
Container
(
color:
backgroundColor
,
margin:
EdgeInsets
.
only
(
left:
(
i
==
0
)
?
0
:
12.5
,
right:
(
i
==
widget
.
favoriteList
.
length
-
1
)
?
0
:
12.5
),
child:
Column
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
children:
[
defaultText
(
defaultText
(
context
,
context
,
favMenu
[
i
]
,
widget
.
favoriteList
[
i
].
name
,
style:
favNameStyle
(),
style:
favNameStyle
(),
),
),
AnimatedSwitcher
(
AnimatedSwitcher
(
...
@@ -69,5 +70,7 @@ class _FavoriteListState extends State<FavoriteList> {
...
@@ -69,5 +70,7 @@ class _FavoriteListState extends State<FavoriteList> {
);
);
},
},
);
);
},
);
}
}
}
}
lib/ui/home/menu_list_utama.dart
0 → 100644
View file @
5e84548b
// ignore_for_file: sized_box_for_whitespace
import
'package:flutter/material.dart'
;
import
'../../helper/helper.dart'
;
import
'../../helper/widget/style.dart'
;
import
'../../models/filter_menu.dart'
;
class
MenuListUtama
extends
StatelessWidget
{
const
MenuListUtama
({
Key
?
key
,
required
this
.
categoryNonFav
,
required
this
.
i
,
})
:
super
(
key:
key
);
final
List
<
FilterMenu
>
categoryNonFav
;
final
int
i
;
@override
Widget
build
(
BuildContext
context
)
{
bool
addCondition
=
false
;
return
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
(
categoryNonFav
[
i
].
type
==
typeCategory
)
?
defaultText
(
context
,
categoryNonFav
[
i
].
categoryName
,
maxLines:
1
,
overFlow:
TextOverflow
.
ellipsis
,
style:
categoryNameStyle
(),
)
:
const
SizedBox
(),
(
categoryNonFav
[
i
].
type
==
typeCategory
)
?
const
Divider
(
thickness:
1
,
color:
textColorBlack
,
)
:
const
SizedBox
(),
(
categoryNonFav
[
i
].
type
==
typeGroup
)
?
Container
(
margin:
const
EdgeInsets
.
only
(
top:
6
,
),
child:
defaultText
(
context
,
maxLines:
3
,
overFlow:
TextOverflow
.
ellipsis
,
categoryNonFav
[
i
].
groupName
,
style:
subCategoryStyle
(),
),
)
:
const
SizedBox
(),
(
categoryNonFav
[
i
].
type
==
typeMenu
)
?
Container
(
margin:
const
EdgeInsets
.
symmetric
(
vertical:
19
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
end
,
children:
[
Container
(
height:
125
,
width:
double
.
infinity
,
child:
Row
(
children:
[
Expanded
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
defaultText
(
context
,
categoryNonFav
[
i
].
name
,
style:
menuNameStyle
(),
),
const
Spacer
(),
defaultText
(
maxLines:
2
,
overFlow:
TextOverflow
.
ellipsis
,
context
,
categoryNonFav
[
i
].
description
,
style:
deskripsiMenuStyle
(),
),
const
SizedBox
(
height:
4
,
),
defaultText
(
maxLines:
1
,
overFlow:
TextOverflow
.
ellipsis
,
context
,
'Rp
${formatNumber().format(amountParseToInt(categoryNonFav[i].price))}
'
,
style:
amountMenuStyle
(),
)
],
),
),
Container
(
width:
12
,
height:
double
.
infinity
,
),
Container
(
width:
125
,
height:
125
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
14
)),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
14
),
child:
Image
(
image:
NetworkImage
(
categoryNonFav
[
i
].
imageUrlMedium
,
),
),
),
)
],
),
),
Container
(
height:
8
,
width:
double
.
infinity
,
),
(
addCondition
)
?
Container
(
height:
36
,
width:
double
.
infinity
,
child:
Row
(
children:
[
const
Spacer
(),
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
10
),
color:
buttonColor
,
),
height:
double
.
infinity
,
width:
125
,
child:
Center
(
child:
defaultText
(
context
,
'Tambah'
,
style:
addButtonMenu
(),
),
),
)
],
),
)
:
Container
(
height:
36
,
width:
125
,
child:
Row
(
children:
[
Container
(
width:
27
,
height:
24
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
6
),
color:
buttonColor
,
),
child:
const
Center
(
child:
Image
(
width:
13.33
,
height:
13.33
,
color:
textInButton
,
image:
AssetImage
(
'assets/icons/note.png'
),
),
),
),
const
SizedBox
(
width:
5
,
),
Expanded
(
child:
Container
(
height:
22
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
30
),
color:
Colors
.
white
,
),
child:
Stack
(
children:
[
Positioned
(
left:
0
,
child:
Container
(
width:
22
,
height:
22
,
child:
const
Image
(
image:
AssetImage
(
'assets/icons/minus.png'
),
),
),
),
Positioned
(
right:
0
,
child:
Container
(
width:
22
,
height:
22
,
child:
const
Image
(
image:
AssetImage
(
'assets/icons/plus.png'
),
),
),
),
Center
(
child:
Container
(
height:
22
,
child:
Center
(
child:
defaultText
(
context
,
'10'
,
style:
amountGridFav
(),
),
),
),
),
],
),
),
),
],
),
)
],
),
)
:
const
SizedBox
(),
],
);
}
}
lib/ui/home/new_home.dart
View file @
5e84548b
This diff is collapsed.
Click to expand it.
lib/ui/home/new_home2.dart
View file @
5e84548b
This diff is collapsed.
Click to expand it.
lib/ui/screen_responsive.dart
View file @
5e84548b
...
@@ -8,12 +8,12 @@ class ScreenResponsive extends StatefulWidget {
...
@@ -8,12 +8,12 @@ class ScreenResponsive extends StatefulWidget {
Widget
widget
;
Widget
widget
;
double
widthScreen
;
double
widthScreen
;
bool
isCoreLayout
;
bool
isCoreLayout
;
ScreenResponsive
(
ScreenResponsive
(
{
{
Key
?
key
,
Key
?
key
,
required
this
.
widget
,
required
this
.
widget
,
required
this
.
widthScreen
,
required
this
.
widthScreen
,
required
this
.
isCoreLayout
})
required
this
.
isCoreLayout
,
:
super
(
key:
key
);
})
:
super
(
key:
key
);
@override
@override
State
<
ScreenResponsive
>
createState
()
=>
_ScreenResponsiveState
();
State
<
ScreenResponsive
>
createState
()
=>
_ScreenResponsiveState
();
...
...
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