|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
// Flutter imports:
|
|
|
|
|
import 'package:akuCommunity/widget/buttons/bottom_button.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
@ -104,17 +105,13 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
|
padding: EdgeInsets.fromLTRB(24.w, 24.w, 24.w, 0),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
BeeMap
|
|
|
|
|
.fixTag[model.type]
|
|
|
|
|
.text
|
|
|
|
|
BeeMap.fixTag[model.type].text
|
|
|
|
|
.color(ktextPrimary)
|
|
|
|
|
.bold
|
|
|
|
|
.size(32.sp)
|
|
|
|
|
.make(),
|
|
|
|
|
Spacer(),
|
|
|
|
|
BeeMap
|
|
|
|
|
.fixState[model.status]
|
|
|
|
|
.text
|
|
|
|
|
BeeMap.fixState[model.status].text
|
|
|
|
|
.color(_getColor(model.status))
|
|
|
|
|
.size(24.sp)
|
|
|
|
|
.make(),
|
|
|
|
@ -173,7 +170,7 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
|
constraints: BoxConstraints(minHeight: 384.w, minWidth: 686.w),
|
|
|
|
|
child: FixedCheckBox(
|
|
|
|
|
key:ValueKey(model.id),
|
|
|
|
|
key: ValueKey(model.id),
|
|
|
|
|
onChanged: (isSelect) {
|
|
|
|
|
if (isSelect) {
|
|
|
|
|
_selected.add(model.id);
|
|
|
|
@ -233,9 +230,7 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
|
setState(() {});
|
|
|
|
|
})
|
|
|
|
|
],
|
|
|
|
|
body: Column(
|
|
|
|
|
children: [
|
|
|
|
|
BeeListView(
|
|
|
|
|
body: BeeListView(
|
|
|
|
|
controller: _easyRefreshController,
|
|
|
|
|
path: API.manager.fixedSubmit,
|
|
|
|
|
convert: (model) {
|
|
|
|
@ -259,37 +254,21 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
|
},
|
|
|
|
|
itemCount: items.length);
|
|
|
|
|
},
|
|
|
|
|
).expand(),
|
|
|
|
|
MaterialButton(
|
|
|
|
|
disabledColor: Colors.white.withOpacity(0.5),
|
|
|
|
|
disabledTextColor: ktextSubColor.withOpacity(0.8),
|
|
|
|
|
textColor: ktextPrimary,
|
|
|
|
|
),
|
|
|
|
|
bottomNavi: BottomButton(
|
|
|
|
|
onPressed: _isEdit
|
|
|
|
|
? _selected.isEmpty
|
|
|
|
|
? null
|
|
|
|
|
: () {
|
|
|
|
|
Get.dialog(_showDeletDialog());
|
|
|
|
|
}
|
|
|
|
|
: () {
|
|
|
|
|
userProvider.isLogin
|
|
|
|
|
? AddFixedSubmitPage().to()
|
|
|
|
|
: BotToast.showText(text: '请先登录!');
|
|
|
|
|
: () async {
|
|
|
|
|
bool needRefresh = await Get.to(AddFixedSubmitPage());
|
|
|
|
|
if (needRefresh == null) _easyRefreshController.callRefresh();
|
|
|
|
|
},
|
|
|
|
|
child: _isEdit
|
|
|
|
|
? '删除订单'.text.bold.size(32.sp).make()
|
|
|
|
|
: '新增'.text.bold.size(32.sp).make(),
|
|
|
|
|
minWidth: double.infinity,
|
|
|
|
|
height: 98.w,
|
|
|
|
|
elevation: 0,
|
|
|
|
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
|
)
|
|
|
|
|
.box
|
|
|
|
|
.padding(EdgeInsets.only(
|
|
|
|
|
bottom: MediaQuery.of(context).padding.bottom))
|
|
|
|
|
.color(kPrimaryColor)
|
|
|
|
|
.make(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|