|
|
@@ -192,20 +192,19 @@ class _MemberDiscountCountdownWidgetState extends State<MemberDiscountCountdownW
|
|
|
|
|
|
Widget _createItemWidget(String timeStr) {
|
|
|
return Container(
|
|
|
- padding: EdgeInsets.only(left: 2.w,right: 2.w),
|
|
|
+ height: 15.w, // 确保容器有足够高度
|
|
|
+ alignment: Alignment.center,
|
|
|
decoration: BoxDecoration(
|
|
|
- borderRadius: BorderRadius.all(Radius.circular(3)),
|
|
|
- color: "#8B79F3".color
|
|
|
+ borderRadius: BorderRadius.circular(3),
|
|
|
+ color: "#8B79F3".color,
|
|
|
),
|
|
|
- child: Center(
|
|
|
- child: Text(
|
|
|
- timeStr,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 11.sp,
|
|
|
- color: ColorName.white,
|
|
|
- backgroundColor: "#8B79F3".color,
|
|
|
- fontWeight: FontWeight.w500,
|
|
|
- ),
|
|
|
+ padding: EdgeInsets.symmetric(horizontal: 2.w),
|
|
|
+ child: Text(
|
|
|
+ timeStr,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 11.sp,
|
|
|
+ color: ColorName.white,
|
|
|
+ fontWeight: FontWeight.w500,
|
|
|
),
|
|
|
),
|
|
|
);
|