Browse Source
将商品页脚部分抽离为独立组件 GoodsFooterSection 更新多语言翻译中的版权信息和公司名称 修改 totalCount 为 totalQuota 以保持术语一致 添加内购客服QQ信息显示功能newdev_shunjiawei
15 changed files with 92 additions and 182 deletions
@ -0,0 +1,48 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:get/get.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
import '../../../../data/models/appconfig.dart'; |
|||
|
|||
class GoodsFooterSection extends StatelessWidget { |
|||
final bool isDarkMode; |
|||
const GoodsFooterSection({super.key, required this.isDarkMode}); |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
final subColor = isDarkMode ? Colors.white60 : Colors.grey[600]; |
|||
final qq = AppConfig.env('iapCustomerServiceQQ') ?? ''; |
|||
return Padding( |
|||
padding: EdgeInsets.symmetric(vertical: 12.h), |
|||
child: Column( |
|||
crossAxisAlignment: CrossAxisAlignment.center, |
|||
children: [ |
|||
SizedBox( |
|||
width: double.infinity, |
|||
child: Divider(color: isDarkMode ? Colors.white24 : Colors.black12), |
|||
), |
|||
SizedBox(height: 8.h), |
|||
Text( |
|||
'appNameProvider'.tr, |
|||
textAlign: TextAlign.center, |
|||
style: TextStyle(fontSize: 11.sp, color: subColor), |
|||
), |
|||
SizedBox(height: 4.h), |
|||
if (qq.isNotEmpty) ...[ |
|||
Text( |
|||
'iapCustomerServiceQQLabel'.trParams({'qq': qq}), |
|||
textAlign: TextAlign.center, |
|||
style: TextStyle(fontSize: 11.sp, color: subColor), |
|||
), |
|||
SizedBox(height: 4.h), |
|||
], |
|||
// SizedBox(height: 4.h), |
|||
Text( |
|||
'copyrightVoitrans'.tr, |
|||
textAlign: TextAlign.center, |
|||
style: TextStyle(fontSize: 11.sp, color: subColor), |
|||
), |
|||
], |
|||
), |
|||
); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue