Commit 9473759f authored by Dio Maulana's avatar Dio Maulana

fixed for loading load

parent b99ba798
......@@ -24,34 +24,22 @@ class MenuListUtama extends StatelessWidget {
required this.i,
required this.widthScreen,
required this.scrollController,
required this.idCategory,
}) : super(key: key);
final List<FilterMenu> categoryNonFav;
final int i;
final double widthScreen;
final ScrollController scrollController;
final String idCategory;
@override
Widget build(BuildContext context) {
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: 0.5,
color: textColorBlack,
)
: const SizedBox(),
(categoryNonFav[i].type == typeGroup)
(categoryNonFav[i].type == typeGroup &&
categoryNonFav[i].categoryId == idCategory)
? Container(
margin: const EdgeInsets.only(
top: 6,
......@@ -65,7 +53,8 @@ class MenuListUtama extends StatelessWidget {
),
)
: const SizedBox(),
(categoryNonFav[i].type == typeMenu)
(categoryNonFav[i].type == typeMenu &&
categoryNonFav[i].categoryId == idCategory)
? Container(
margin: EdgeInsets.only(
top: 19,
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment