|
@@ -209,8 +209,7 @@ class RewardsHomePage extends HookConsumerWidget {
|
|
|
}
|
|
|
|
|
|
Widget _buildRecommend(BuildContext context, WidgetRef ref, _vm, list) {
|
|
|
- return list['rewards'].length > 0
|
|
|
- ? Container(
|
|
|
+ return Container(
|
|
|
child: Column(
|
|
|
children: [
|
|
|
Row(
|
|
@@ -229,7 +228,8 @@ class RewardsHomePage extends HookConsumerWidget {
|
|
|
}),
|
|
|
],
|
|
|
).marginOnly(bottom: 15),
|
|
|
- Row(
|
|
|
+ list['rewards'].length > 0
|
|
|
+ ? Row(
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
children: List.generate(list['rewards'].length, (index) {
|
|
@@ -245,11 +245,15 @@ class RewardsHomePage extends HookConsumerWidget {
|
|
|
child: ClipRRect(
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(6.0)),
|
|
|
child: _buildItem(context, ref, _vm, hg, list['rewards'][index])));
|
|
|
- }))
|
|
|
+ })):
|
|
|
+ const MyAssetImage(
|
|
|
+ Assets.baseServicePageNoData,
|
|
|
+ width: 185,
|
|
|
+ height: 173,
|
|
|
+ ),
|
|
|
],
|
|
|
),
|
|
|
- ).paddingOnly(left: 15, right: 15, top: 10)
|
|
|
- : Container();
|
|
|
+ ).paddingOnly(left: 15, right: 15, top: 10);
|
|
|
}
|
|
|
|
|
|
Widget _buildHottest(BuildContext context, WidgetRef ref, _vm) {
|
|
@@ -345,8 +349,7 @@ class RewardsHomePage extends HookConsumerWidget {
|
|
|
}
|
|
|
|
|
|
Widget _buildFood(BuildContext context, WidgetRef ref, _vm, list) {
|
|
|
- return list['rewards'].length > 0
|
|
|
- ? Container(
|
|
|
+ return Container(
|
|
|
child: Column(
|
|
|
children: [
|
|
|
Row(
|
|
@@ -365,7 +368,8 @@ class RewardsHomePage extends HookConsumerWidget {
|
|
|
}),
|
|
|
],
|
|
|
).marginOnly(bottom: 15),
|
|
|
- Row(
|
|
|
+ list['rewards'].length > 0
|
|
|
+ ? Row(
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
children: List.generate(list['rewards'].length, (index) {
|
|
@@ -380,16 +384,19 @@ class RewardsHomePage extends HookConsumerWidget {
|
|
|
),
|
|
|
child: ClipRRect(
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(6.0)), child: _buildItem(context, ref, _vm, hg, list['rewards'][index])));
|
|
|
- }))
|
|
|
+ })):
|
|
|
+ const MyAssetImage(
|
|
|
+ Assets.baseServicePageNoData,
|
|
|
+ width: 185,
|
|
|
+ height: 173,
|
|
|
+ ),
|
|
|
],
|
|
|
),
|
|
|
- ).paddingOnly(left: 15, right: 15, top: 10)
|
|
|
- : Container();
|
|
|
+ ).paddingOnly(left: 15, right: 15, top: 10);
|
|
|
}
|
|
|
|
|
|
Widget _buildBest(BuildContext context, WidgetRef ref, _vm, list) {
|
|
|
- return list['rewards'].length > 0
|
|
|
- ? Container(
|
|
|
+ return Container(
|
|
|
child: Column(
|
|
|
children: [
|
|
|
Row(
|
|
@@ -406,7 +413,8 @@ class RewardsHomePage extends HookConsumerWidget {
|
|
|
),
|
|
|
],
|
|
|
).marginOnly(bottom: 15),
|
|
|
- Column(
|
|
|
+ list['rewards'].length > 0
|
|
|
+ ? Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
children: List.generate(list['rewards'].length, (index) {
|
|
@@ -422,11 +430,15 @@ class RewardsHomePage extends HookConsumerWidget {
|
|
|
child: ClipRRect(
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(6.0)), child: _buildItem(context, ref, _vm, hg, list['rewards'][index])))
|
|
|
.marginOnly(bottom: 13);
|
|
|
- }))
|
|
|
+ })):
|
|
|
+ const MyAssetImage(
|
|
|
+ Assets.baseServicePageNoData,
|
|
|
+ width: 185,
|
|
|
+ height: 173,
|
|
|
+ ),
|
|
|
],
|
|
|
),
|
|
|
- ).paddingOnly(left: 15, right: 15, top: 10)
|
|
|
- : Container();
|
|
|
+ ).paddingOnly(left: 15, right: 15, top: 10);
|
|
|
}
|
|
|
|
|
|
@override
|