Browse Source

新增另一个龙骨架依赖,对比效果;

管理app:申请退款页面部分跳转;
月份选择,新增:allowViewNavigation: false,即可禁用导航视图切换,实现选择某个月份;
订单-搜索键盘弹出不顶起部分内容;
wr_2023_business
wurong 1 year ago
parent
commit
11ad0e524a
  1. 1
      lib/business_system/date_select/monthly_report_page.dart
  2. 1
      lib/business_system/order/business_order_page.dart
  3. 12
      lib/business_system/order/request_refund.dart
  4. 7
      pubspec.lock
  5. 2
      pubspec.yaml

1
lib/business_system/date_select/monthly_report_page.dart

@ -59,6 +59,7 @@ class _MonthlyReportPage extends State<MonthlyReportPage>{
view: DateRangePickerView.year, view: DateRangePickerView.year,
controller: _controller, controller: _controller,
selectionColor: Color(0xFF30415B), selectionColor: Color(0xFF30415B),
allowViewNavigation: false,
), ),
) )
], ],

1
lib/business_system/order/business_order_page.dart

@ -72,6 +72,7 @@ class _BusinessOrderPage extends State<BusinessOrderPage>
DefaultTabController( DefaultTabController(
length:4, length:4,
child: Scaffold( child: Scaffold(
resizeToAvoidBottomInset: false,
appBar: MyAppBar( appBar: MyAppBar(
title:"", title:"",
leading: false, leading: false,

12
lib/business_system/order/request_refund.dart

@ -23,6 +23,7 @@ class _RequestRefund extends State<RequestRefund> {
FocusNode _focusNode = FocusNode(); FocusNode _focusNode = FocusNode();
bool isKeyBoardShow = false; bool isKeyBoardShow = false;
int modifyAmountState = 0; int modifyAmountState = 0;
int refundState = 0;
@override @override
void initState() { void initState() {
@ -198,7 +199,11 @@ class _RequestRefund extends State<RequestRefund> {
GestureDetector( GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: (){ onTap: (){
showModifyAmountDialog(); if(refundState == 1){
Navigator.of(context).pop();
}else{
showModifyAmountDialog();
}
}, },
child: Container( child: Container(
width: double.infinity, width: double.infinity,
@ -295,7 +300,10 @@ class _RequestRefund extends State<RequestRefund> {
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
onTap: () { onTap: () {
Navigator.of(context).pop(); setState((){
refundState = 1;
Navigator.of(context).pop();
});
}, },
), ),
flex: 1, flex: 1,

7
pubspec.lock

@ -291,6 +291,13 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "5.0.0+1" version: "5.0.0+1"
flutter_skeleton:
dependency: "direct main"
description:
name: flutter_skeleton
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.1.0+1"
flutter_slidable: flutter_slidable:
dependency: "direct main" dependency: "direct main"
description: description:

2
pubspec.yaml

@ -110,6 +110,8 @@ dependencies:
shimmer: ^3.0.0 shimmer: ^3.0.0
flutter_skeleton: ^0.1.0+1
# 时间选择器 # 时间选择器
flutter_datetime_picker: ^1.5.1 flutter_datetime_picker: ^1.5.1

Loading…
Cancel
Save