修改ui设计错误
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import 'package:ef/ef.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:flutterflow_ui/flutterflow_ui.dart';
|
||||
import 'package:vbvs_app/common/color/appConstants.dart';
|
||||
import 'package:vbvs_app/common/color/appFontsize.dart';
|
||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||
import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/component/NullDataComponentWidget.dart';
|
||||
import 'package:vbvs_app/controller/mh_controller/address_list_controller.dart';
|
||||
import 'package:vbvs_app/pages/mh_page/EmptyMessageWidget.dart';
|
||||
import 'package:vbvs_app/pages/mh_page/address_module_widget.dart';
|
||||
@@ -71,9 +73,7 @@ class AddressListPage extends GetView<AddressListController> {
|
||||
Obx(() {
|
||||
if (controller.model.addressList!.isEmpty) {
|
||||
// 如果地址列表为空,显示 EmptyMessageWidget
|
||||
return Expanded(
|
||||
child: EmptyMessageWidget(),
|
||||
);
|
||||
return Expanded(child: NullDataWidget());
|
||||
} else {
|
||||
// 如果地址列表不为空,显示地址列表
|
||||
return Expanded(
|
||||
@@ -160,24 +160,29 @@ class AddressListPage extends GetView<AddressListController> {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Baseline(
|
||||
baselineType: TextBaseline.alphabetic,
|
||||
baseline: AppFontsize.normal_text_size *
|
||||
1.6, // 调整基线位置
|
||||
child: Text(
|
||||
'+',
|
||||
style: FlutterFlowTheme.of(context)
|
||||
.titleSmall
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Color(0xFF85F5FF),
|
||||
fontSize:
|
||||
AppFontsize.normal_text_size +
|
||||
12, // 让加号比文字稍大
|
||||
letterSpacing: 0,
|
||||
),
|
||||
),
|
||||
// Baseline(
|
||||
// baselineType: TextBaseline.alphabetic,
|
||||
// baseline: AppFontsize.normal_text_size *
|
||||
// 1.6, // 调整基线位置
|
||||
SvgPicture.asset(
|
||||
'assets/img/icon/plus.svg',
|
||||
width: 42.rpx,
|
||||
height: 42.rpx,
|
||||
),
|
||||
// Text(
|
||||
// '+',
|
||||
// style: FlutterFlowTheme.of(context)
|
||||
// .titleSmall
|
||||
// .override(
|
||||
// fontFamily: 'Readex Pro',
|
||||
// color: Color(0xFF85F5FF),
|
||||
// fontSize:
|
||||
// AppFontsize.normal_text_size +
|
||||
// 12, // 让加号比文字稍大
|
||||
// letterSpacing: 0,
|
||||
// ),
|
||||
// ),
|
||||
//),
|
||||
SizedBox(width: 10), // 加号和文字间距
|
||||
Text(
|
||||
'添加新地址',
|
||||
|
||||
Reference in New Issue
Block a user