22 changed files with 149 additions and 241 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