Browse Source

布局更改

ff_new
w-R 3 years ago
parent
commit
8ca78446f9
  1. 5
      lib/order/order_detail_page.dart
  2. 4
      lib/order/order_view/order_info.dart
  3. 13
      lib/order/order_view/order_status.dart

5
lib/order/order_detail_page.dart

@ -1,7 +1,6 @@
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:fluwx/fluwx.dart';
import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/generated/l10n.dart';
import 'package:huixiang/order/order_view/order_address.dart'; import 'package:huixiang/order/order_view/order_address.dart';
import 'package:huixiang/order/order_view/order_commodity.dart'; import 'package:huixiang/order/order_view/order_commodity.dart';
@ -10,12 +9,8 @@ import 'package:huixiang/order/order_view/order_pay_selected.dart';
import 'package:huixiang/order/order_view/order_status.dart'; import 'package:huixiang/order/order_view/order_status.dart';
import 'package:huixiang/retrofit/data/base_data.dart'; import 'package:huixiang/retrofit/data/base_data.dart';
import 'package:huixiang/retrofit/data/order_info.dart'; import 'package:huixiang/retrofit/data/order_info.dart';
import 'package:huixiang/retrofit/data/placeOrderFirst.dart';
import 'package:huixiang/retrofit/data/wx_pay.dart';
import 'package:huixiang/retrofit/min_api.dart'; import 'package:huixiang/retrofit/min_api.dart';
import 'package:huixiang/retrofit/retrofit_api.dart'; import 'package:huixiang/retrofit/retrofit_api.dart';
import 'package:huixiang/settlement/settlement_view/pay_method.dart';
import 'package:huixiang/utils/min.dart';
import 'package:huixiang/view_widget/icon_text.dart'; import 'package:huixiang/view_widget/icon_text.dart';
import 'package:huixiang/view_widget/my_appbar.dart'; import 'package:huixiang/view_widget/my_appbar.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';

4
lib/order/order_view/order_info.dart

@ -45,8 +45,8 @@ class _OrderInfoView extends State<OrderInfoView> {
S.of(context).dingdanhao, widget.orderInfo != null ? widget.orderInfo.id : ""), S.of(context).dingdanhao, widget.orderInfo != null ? widget.orderInfo.id : ""),
orderInfoItem(S.of(context).xiadanshijian, orderInfoItem(S.of(context).xiadanshijian,
widget.orderInfo != null ? widget.orderInfo.createTime : ""), widget.orderInfo != null ? widget.orderInfo.createTime : ""),
// orderInfoItem(S.of(context).peisongfangshi, orderInfo != null ? orderInfo.createTime : ""), orderInfoItem(S.of(context).peisongfangshi,(widget.orderInfo != null && widget.orderInfo.logisticsName != "") ? widget.orderInfo.logisticsName : "美团配送"),
orderInfoItem(S.of(context).peisongfangshi,"美团配送"), // orderInfoItem(S.of(context).peisongfangshi,"美团配送"),
orderInfoItem( orderInfoItem(
S.of(context).beizhuxinxi, S.of(context).beizhuxinxi,
widget.orderInfo != null widget.orderInfo != null

13
lib/order/order_view/order_status.dart

@ -166,16 +166,19 @@ class _OrderStatus extends State<OrderStatus> {
} }
} }
return [ return [
AspectRatio( Container(
alignment: Alignment.center,
child: AspectRatio(
aspectRatio: 1, aspectRatio: 1,
child: BorderText( child: BorderText(
text: hour, text: hour,
textColor: Colors.white, textColor: Colors.white,
fontSize: 21.sp, fontSize:16.sp,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
borderColor: Colors.white, borderColor: Colors.white,
borderWidth: 1, borderWidth: 1,
padding: EdgeInsets.all(2), // padding: EdgeInsets.all(2),
),
), ),
), ),
SizedBox( SizedBox(
@ -196,11 +199,11 @@ class _OrderStatus extends State<OrderStatus> {
child: BorderText( child: BorderText(
text: minute, text: minute,
textColor: Colors.white, textColor: Colors.white,
fontSize: 21.sp, fontSize:16.sp,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
borderColor: Colors.white, borderColor: Colors.white,
borderWidth: 1, borderWidth: 1,
padding: EdgeInsets.all(2), // padding: EdgeInsets.all(2),
), ),
), ),
]; ];

Loading…
Cancel
Save