fix:修复记录页面

This commit is contained in:
ante 2024-04-18 18:40:38 +08:00
parent ed4ab94246
commit 8de69a0180
3 changed files with 11 additions and 13 deletions

View File

@ -42,6 +42,12 @@ class _ValueAddedServicesRealNamePageState
style: TextStyle(
color: AppColors.darkGrayTextColor, fontSize: 20.sp),
)),
TextButton(
onPressed: () {
Get.toNamed(Routers.valueAddedServicesRecordPage,
arguments: UseRecordListArg.cloudauth);
},
child: Text('asdasd')),
middleWidget(),
bottomWidget()
],
@ -53,8 +59,6 @@ class _ValueAddedServicesRealNamePageState
Widget middleWidget() {
return Container(
width: 1.sw,
// height: 100,
// color: Colors.grey.shade300,
margin: EdgeInsets.all(10.h),
decoration: const BoxDecoration(
image: DecorationImage(
@ -76,11 +80,8 @@ class _ValueAddedServicesRealNamePageState
],
),
),
// SizedBox(height:20.h),
Container(
margin: const EdgeInsets.only(top: 10, bottom: 10),
// color: Colors.red,
// height: 100.h,
Padding(
padding: const EdgeInsets.only(top: 10, bottom: 10),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
@ -91,8 +92,6 @@ class _ValueAddedServicesRealNamePageState
},
child: Container(
width: 200.w,
// height: 70.h,
// color: Colors.red,
child: Center(
child: Text(TranslationLoader.lanKeys!.record!.tr,
style: TextStyle(
@ -106,8 +105,7 @@ class _ValueAddedServicesRealNamePageState
},
child: Container(
width: 200.w,
// height: 70.h,
// color: Colors.red,
color: Colors.transparent,
child: Center(
child: Text(TranslationLoader.lanKeys!.buy!.tr,
style: TextStyle(

View File

@ -20,7 +20,7 @@ class ValueAddedServicesRecordLogic extends BaseGetXController {
void onInit() {
super.onInit();
dynamic data = Get.arguments;
if (data is! Map && data['type'] is! String) {
if (data is! Map || data['type'] is! String) {
Get.back();
return;
}

View File

@ -68,7 +68,7 @@ class _PurchaseRecordsState extends State<_PurchaseRecords> {
return EasyRefresh(
onRefresh: () async {},
onLoad: () async {},
child: ListView.builder(itemBuilder: (BuildContext context, int index) {
child: ListView.builder(itemCount: 0,itemBuilder: (BuildContext context, int index) {
return SizedBox();
}),
);