|
|
@@ -10,6 +10,7 @@ import 'package:get/get.dart';
|
|
|
|
|
|
import '../../data/bean/store_item.dart';
|
|
|
import '../../data/consts/Constants.dart';
|
|
|
+import '../../widget/shimmer_effect.dart';
|
|
|
import 'controller.dart';
|
|
|
|
|
|
enum StoreFromType { home, mine, analyse }
|
|
|
@@ -538,19 +539,21 @@ class StorePage extends BasePage<StoreController> {
|
|
|
),
|
|
|
child: GestureDetector(
|
|
|
onTap: () => controller.onBuyClick(),
|
|
|
- child: Container(
|
|
|
- height: 48.w,
|
|
|
- alignment: Alignment.center,
|
|
|
- decoration: BoxDecoration(
|
|
|
- gradient: LinearGradient(
|
|
|
- colors: ['#9075FF'.color, '#4366FF'.color],
|
|
|
- begin: Alignment.centerLeft,
|
|
|
- end: Alignment.centerRight,
|
|
|
- stops: const [0.0, 1.0],
|
|
|
+ child: ShimmerEffect(
|
|
|
+ child: Container(
|
|
|
+ height: 48.w,
|
|
|
+ alignment: Alignment.center,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ gradient: LinearGradient(
|
|
|
+ colors: ['#9075FF'.color, '#4366FF'.color],
|
|
|
+ begin: Alignment.centerLeft,
|
|
|
+ end: Alignment.centerRight,
|
|
|
+ stops: const [0.0, 1.0],
|
|
|
+ ),
|
|
|
+ borderRadius: BorderRadius.circular(8.w),
|
|
|
),
|
|
|
- borderRadius: BorderRadius.circular(8.w),
|
|
|
+ child: _buildBuyButton(),
|
|
|
),
|
|
|
- child: _buildBuyButton(),
|
|
|
),
|
|
|
),
|
|
|
);
|
|
|
@@ -558,7 +561,7 @@ class StorePage extends BasePage<StoreController> {
|
|
|
|
|
|
Widget _buildBuyButton() {
|
|
|
return Obx(() => Text(
|
|
|
- "立即购买 ¥${controller.currentSelectedStoreItem.value?.amountText}",
|
|
|
+ "立即购买 ¥${controller.currentSelectedStoreItem.value?.amountText ?? ''}",
|
|
|
style: TextStyle(
|
|
|
fontWeight: FontWeight.bold,
|
|
|
fontSize: 16.sp,
|