parent
7c5afab92b
commit
6325d49437
After Width: | Height: | Size: 8.3 KiB |
@ -0,0 +1,298 @@
|
||||
// Dart imports:
|
||||
import 'dart:io';
|
||||
|
||||
// Flutter imports:
|
||||
import 'package:aku_community_manager/const/api.dart';
|
||||
import 'package:aku_community_manager/models/manager/facilities/facilities_check_list_model.dart';
|
||||
// Project imports:
|
||||
import 'package:aku_community_manager/style/app_style.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/app_widgets/aku_pick_image_widget.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/app_widgets/aku_single_check_button.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/app_widgets/bee_grid_image_view.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/common/aku_button.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
|
||||
import 'package:aku_community_manager/utils/network/base_model.dart';
|
||||
import 'package:aku_community_manager/utils/network/net_util.dart';
|
||||
import 'package:bot_toast/bot_toast.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
// Package imports:
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:velocity_x/velocity_x.dart';
|
||||
|
||||
import 'facilities_map.dart';
|
||||
|
||||
class FacilitiesInspectReportDetailPage extends StatefulWidget {
|
||||
final int facilitiesType;
|
||||
final int id;
|
||||
final FacilitiesCheckListModel? model;
|
||||
|
||||
FacilitiesInspectReportDetailPage({
|
||||
Key? key,
|
||||
/*required*/ required this.facilitiesType,
|
||||
/*required*/ required this.id,
|
||||
this.model,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
_FacilitiesInspectReportDetailPageState createState() =>
|
||||
_FacilitiesInspectReportDetailPageState();
|
||||
}
|
||||
|
||||
class _FacilitiesInspectReportDetailPageState
|
||||
extends State<FacilitiesInspectReportDetailPage> {
|
||||
// List<File>? _selfPhotos;
|
||||
late List<File> _scenePhotos;
|
||||
String? _describtion;
|
||||
int _scene = 1; //设施设备状况 1为正常 2为异常
|
||||
bool get editEnable => widget.model == null;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
// TODO: implement initState
|
||||
super.initState();
|
||||
if(!editEnable){
|
||||
if(widget.model!.situation==1){
|
||||
_scene = 1;
|
||||
}
|
||||
else if(widget.model!.situation==2){
|
||||
_scene = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AkuScaffold(
|
||||
title: '检查报告',
|
||||
body: ListView(
|
||||
children: [
|
||||
Container(
|
||||
color: Color(0XFFF9F9F9),
|
||||
height: 16.w,
|
||||
width: double.infinity,
|
||||
),
|
||||
_basicMessageCard(widget.model),
|
||||
Container(
|
||||
color: Color(0XFFF9F9F9),
|
||||
height: 16.w,
|
||||
width: double.infinity,
|
||||
),
|
||||
_descriptionCard(
|
||||
widget.facilitiesType == 1 ? '设施情况' : '设备情况',
|
||||
widget.model
|
||||
),
|
||||
_scenePhotoCard(widget.model),
|
||||
],
|
||||
),
|
||||
// bottom: _bottomSubmitButton(),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _bottomSubmitButton() {
|
||||
return AkuButton(
|
||||
onPressed: () async {
|
||||
List<String?> _scenePhotoUrl = await NetUtil().uploadFiles(
|
||||
_scenePhotos,
|
||||
API.upload.uploadFacilitiCheckPhoto,
|
||||
);
|
||||
|
||||
BaseModel baseModel =
|
||||
await NetUtil().post(API.manage.submitFacilitiesCheckInfo, params: {
|
||||
"id": widget.id,
|
||||
"situation": _scene,
|
||||
"detail": _describtion,
|
||||
"imgUrls": _scenePhotoUrl,
|
||||
});
|
||||
if (baseModel.status!) {
|
||||
Get.back();
|
||||
}
|
||||
BotToast.showText(text: baseModel.message!);
|
||||
},
|
||||
width: double.infinity,
|
||||
height: 100.w,
|
||||
child: '立即提交'.text.color(kTextPrimaryColor).bold.size(32.sp).make(),
|
||||
color: Color(0xFFFFC40C),
|
||||
padding: EdgeInsets.symmetric(vertical: 26.w),
|
||||
).pOnly(bottom: MediaQuery.of(context).padding.bottom);
|
||||
}
|
||||
|
||||
Widget _basicMessageCard(FacilitiesCheckListModel? model) {
|
||||
return Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
'基础信息'.text.size(32.sp).color(kTextPrimaryColor).bold.make(),
|
||||
Spacer(),
|
||||
FacilitiesMap.inspectStatus[model?.status!]!.text
|
||||
.color(FacilitiesMap.insepectColor[model?.status!]!)
|
||||
.size(28.sp)
|
||||
.bold
|
||||
.make(),
|
||||
],
|
||||
),
|
||||
16.w.heightBox,
|
||||
// _buildTile(R.ASSETS_MESSAGE_IC_PEOPLE_PNG, '检查人', model!.facilitiesName??''),
|
||||
// 12.w.heightBox,
|
||||
// _buildTile(R.ASSETS_MESSAGE_IC_PHONE_PNG, '联系电话', model!.??''),
|
||||
// 12.w.heightBox,
|
||||
_buildTile(R.ASSETS_MANAGE_ADDRESS_PNG, '检查场地', model?.facilitiesName??''),
|
||||
12.w.heightBox,
|
||||
_buildTile(R.ASSETS_MANAGE_CLOCK_PNG, '规定任务时间', model?.beginDate??''),
|
||||
],
|
||||
)
|
||||
.box
|
||||
.width(double.infinity)
|
||||
.padding(EdgeInsets.symmetric(vertical: 34.w, horizontal: 32.w))
|
||||
.color(Colors.white)
|
||||
.make();
|
||||
}
|
||||
|
||||
Widget _buildTile(String icon, String title, String text,
|
||||
{Color color = kTextSubColor}) {
|
||||
return Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
icon,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
20.w.widthBox,
|
||||
title.text.size(24.sp).color(kTextSubColor).make(),
|
||||
Spacer(),
|
||||
text.text.size(24.sp).color(color).make(),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Widget _descriptionCard(
|
||||
String title, FacilitiesCheckListModel? model,
|
||||
// int index,
|
||||
) {
|
||||
return Column(
|
||||
children: [
|
||||
Row(
|
||||
children: ['$title'.text.color(kTextPrimaryColor).size(32.sp).bold.make()],
|
||||
),
|
||||
16.w.heightBox,
|
||||
Row(
|
||||
children: [
|
||||
AkuSingleCheckButton(
|
||||
text: '正常',
|
||||
value: 1,
|
||||
gropValue: _scene,
|
||||
onPressed: () {}
|
||||
|
||||
),
|
||||
16.w.widthBox,
|
||||
AkuSingleCheckButton(
|
||||
text: '异常',
|
||||
value: 2,
|
||||
gropValue: _scene,
|
||||
onPressed: () {}
|
||||
|
||||
),
|
||||
],
|
||||
),
|
||||
32.w.heightBox,
|
||||
Row(
|
||||
children: ['补充说明'.text.color(kTextPrimaryColor).size(32.sp).bold.make()],
|
||||
),
|
||||
16.w.heightBox,
|
||||
Container(
|
||||
width: 686.w,
|
||||
height: 120.w,
|
||||
padding: EdgeInsets.all(5.w),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(8.w),
|
||||
border: Border.all(
|
||||
width: 2.w,
|
||||
color: Color(0xFFE8E8E8),
|
||||
),
|
||||
),
|
||||
child: !editEnable
|
||||
? (widget.model!.detail ?? '').text.size(28.sp).black.make()
|
||||
: TextField(
|
||||
minLines: 5,
|
||||
maxLines: 10,
|
||||
autofocus: false,
|
||||
onChanged: (value) {
|
||||
_describtion = value;
|
||||
},
|
||||
decoration: InputDecoration(
|
||||
hintText: '请详细描述异常情况',
|
||||
hintStyle: TextStyle(
|
||||
fontSize: 28.sp,
|
||||
color: kTextSubColor,
|
||||
),
|
||||
contentPadding:
|
||||
EdgeInsets.symmetric(vertical: 16.w, horizontal: 24.w),
|
||||
border: InputBorder.none,
|
||||
isDense: true,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
.box
|
||||
.padding(EdgeInsets.symmetric(vertical: 24.w, horizontal: 32.w))
|
||||
.color(Colors.white)
|
||||
.make();
|
||||
}
|
||||
|
||||
// Widget _selfPhotoCard() {
|
||||
// return Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||
// children: [
|
||||
// Row(
|
||||
// children: [
|
||||
// '3.巡更人员自拍人脸'.text.color(kTextPrimaryColor).size(32.sp).bold.make()
|
||||
// ],
|
||||
// ),
|
||||
// 32.w.heightBox,
|
||||
// AkuPickImageWidget(
|
||||
// description: '上传自拍',
|
||||
// onChanged: (files) {
|
||||
// _selfPhotos = files;
|
||||
// setState(() {});
|
||||
// },
|
||||
// ),
|
||||
// ],
|
||||
// )
|
||||
// .box
|
||||
// .color(Colors.white)
|
||||
// .padding(EdgeInsets.symmetric(vertical: 24.w, horizontal: 32.w))
|
||||
// .make();
|
||||
// }
|
||||
|
||||
Widget _scenePhotoCard(FacilitiesCheckListModel? model) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
'现场照片'.text.color(kTextPrimaryColor).size(32.sp).bold.make()
|
||||
],
|
||||
),
|
||||
32.w.heightBox,
|
||||
!editEnable
|
||||
? BeeGridImageView(
|
||||
urls: (widget.model!.imgList ?? [])
|
||||
.map((e) => API.image(e.url ?? ''))
|
||||
.toList(),
|
||||
)
|
||||
: AkuPickImageWidget(
|
||||
description: '上传现场照片',
|
||||
onChanged: (files) {
|
||||
_scenePhotos = files;
|
||||
setState(() {});
|
||||
},
|
||||
)
|
||||
],
|
||||
)
|
||||
.box
|
||||
.color(Colors.white)
|
||||
.padding(EdgeInsets.symmetric(vertical: 24.w, horizontal: 32.w))
|
||||
.make();
|
||||
}
|
||||
}
|
@ -0,0 +1,405 @@
|
||||
// Flutter imports:
|
||||
import 'package:aku_community_manager/models/manager/borrow/borrow_status_item_model.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/inner/show_bottom_sheet.dart';
|
||||
import 'package:common_utils/common_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
// Package imports:
|
||||
import 'package:bot_toast/bot_toast.dart';
|
||||
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
// Project imports:
|
||||
import 'package:aku_community_manager/const/api.dart';
|
||||
import 'package:aku_community_manager/models/manager/borrow/borrow_check_item_model.dart';
|
||||
import 'package:aku_community_manager/style/app_style.dart';
|
||||
import 'package:aku_community_manager/tools/widget_tool.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/inner/aku_bottom_button.dart';
|
||||
import 'package:aku_community_manager/utils/network/base_model.dart';
|
||||
import 'package:aku_community_manager/utils/network/net_util.dart';
|
||||
import 'package:velocity_x/velocity_x.dart';
|
||||
|
||||
import '../manage_func.dart';
|
||||
|
||||
class BorrowManagerExaminePage extends StatefulWidget {
|
||||
final int id;
|
||||
final int type;
|
||||
//1为借用 2为归还
|
||||
final BorrowStatusItemModel model;
|
||||
BorrowManagerExaminePage({Key? key, required this.id,required this.type, required this.model}) : super(key: key);
|
||||
|
||||
@override
|
||||
_BorrowManagerExaminePageState createState() => _BorrowManagerExaminePageState();
|
||||
}
|
||||
|
||||
class _BorrowManagerExaminePageState extends State<BorrowManagerExaminePage> {
|
||||
int borrowStatus = -1;
|
||||
BorrowCheckItemModel? _model;
|
||||
String rejectReasons = '';
|
||||
late TextEditingController _editingController;
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_editingController = TextEditingController();
|
||||
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_editingController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AkuScaffold(
|
||||
title: '物品审核',
|
||||
bottom: AkuBottomButton(
|
||||
title: '点击提交',
|
||||
onTap: () async {
|
||||
if(borrowStatus!=-1){
|
||||
Function cancel = BotToast.showLoading();
|
||||
await NetUtil().post(
|
||||
API.manage.lendingApproval,
|
||||
params: {
|
||||
'id': widget.id,
|
||||
'status': borrowStatus,
|
||||
'rejectReasons':rejectReasons,
|
||||
},
|
||||
showMessage: true,
|
||||
);
|
||||
cancel();
|
||||
Get.back(result: true);
|
||||
}
|
||||
else{
|
||||
BotToast.showText(text: '请先选择审核结果!');
|
||||
}
|
||||
|
||||
},
|
||||
),
|
||||
body: EasyRefresh(
|
||||
firstRefresh: true,
|
||||
onRefresh: () async {
|
||||
BaseModel model = await NetUtil().get(
|
||||
API.manage.borrowCheckInfo,
|
||||
params: {'articleBorrowId': widget.id},
|
||||
showMessage: false,
|
||||
);
|
||||
if (model.data == null) {
|
||||
// Get.back();
|
||||
return;
|
||||
}
|
||||
_model = BorrowCheckItemModel.fromJson(model.data);
|
||||
setState(() {});
|
||||
},
|
||||
header: MaterialHeader(),
|
||||
child: _model == null
|
||||
? SizedBox()
|
||||
: ListView(
|
||||
padding: EdgeInsets.symmetric(vertical: 16.w),
|
||||
children: [
|
||||
Container(
|
||||
color: Colors.white,
|
||||
padding: EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Column(
|
||||
children: [
|
||||
_buildRow(
|
||||
'物品名称',
|
||||
Text(
|
||||
_model!.articleName!,
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
Divider(height: 1.w),
|
||||
_buildRow(
|
||||
'操作类型',
|
||||
Text(
|
||||
widget.type==1?'借用':'归还',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
Divider(height: 1.w),
|
||||
_buildRow(
|
||||
widget.type==1?'借用数量':'归还数量',
|
||||
Text(
|
||||
'1',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
)),
|
||||
Divider(height: 1.w),
|
||||
_buildRow(
|
||||
'物品图片',
|
||||
FadeInImage.assetNetwork(
|
||||
placeholder: R.ASSETS_PLACEHOLDER_WEBP,
|
||||
image: API.image(_model!.firstImg?.url ?? ''),
|
||||
height: 184.w,
|
||||
width: 184.w,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Container(
|
||||
color: Color(0XFFF9F9F9),
|
||||
height: 16.w,
|
||||
width: double.infinity,
|
||||
),
|
||||
Container(
|
||||
color: Colors.white,
|
||||
padding: EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Column(
|
||||
children: [
|
||||
_buildRow(
|
||||
widget.type==1?'借用人 ':'归还人 ',
|
||||
Text(
|
||||
widget.model.borrowName??'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
Divider(height: 1.w),
|
||||
_buildRow(
|
||||
'联系电话',
|
||||
Text(
|
||||
widget.model.borrowTel??'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
)),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Container(
|
||||
color: Color(0XFFF9F9F9),
|
||||
height: 16.w,
|
||||
width: double.infinity,
|
||||
),
|
||||
Container(
|
||||
color: Color(0XFFF9F9F9),
|
||||
height: 16.w,
|
||||
width: double.infinity,
|
||||
),
|
||||
|
||||
Container(
|
||||
color: Colors.white,
|
||||
padding: EdgeInsets.only(left: 16,right: 16,bottom: 16),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(padding: EdgeInsets.only(top: 25.w,bottom: 25.w),child:'审核结果'.text.size(28.sp).black.make()),
|
||||
Divider(height: 1.w),
|
||||
Material(
|
||||
color: Colors.transparent,
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
_openModalBottomSheet();
|
||||
},
|
||||
child: Row(
|
||||
children: [
|
||||
AkuBox.h(96),
|
||||
Text(
|
||||
borrowStatus==-1?'请选择审核结果': borrowStatus==0?'审核失败':'审核通过',
|
||||
style: TextStyle(
|
||||
fontSize: 32.sp,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: borrowStatus==-1
|
||||
? Color(0x40000000)
|
||||
: Colors.black,
|
||||
),
|
||||
),
|
||||
Spacer(),
|
||||
Icon(
|
||||
Icons.arrow_forward_ios,
|
||||
size: 24.w,
|
||||
color: AppStyle.minorTextColor,
|
||||
)
|
||||
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Divider(height: 1.w),
|
||||
|
||||
Padding(padding: EdgeInsets.only(top: 25.w),child: '备注内容'.text.size(28.sp).black.make()),
|
||||
25.w.heightBox,
|
||||
Container(
|
||||
padding: EdgeInsets.all(24.w),
|
||||
width: double.infinity,
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(color: Color(0xFFD4CFBE), width: 0.5.w),
|
||||
borderRadius: BorderRadius.circular(4.w)),
|
||||
child: TextField(
|
||||
onChanged: (value){
|
||||
rejectReasons = value;
|
||||
setState(() {
|
||||
|
||||
});
|
||||
},
|
||||
controller: _editingController,
|
||||
decoration: InputDecoration(
|
||||
contentPadding: EdgeInsets.zero,
|
||||
isDense: true,
|
||||
border: InputBorder.none,
|
||||
hintText: '请输入备注内容',
|
||||
hintStyle: TextStyle(
|
||||
fontSize: 24.sp,
|
||||
color: kTextSubColor,
|
||||
|
||||
)),
|
||||
style: TextStyle(
|
||||
fontSize: 28.sp,
|
||||
color: Colors.black,
|
||||
),
|
||||
maxLines: 10,
|
||||
minLines: 5,
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
_openModalBottomSheet() {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return Container(
|
||||
height: 180,
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
ListTile(
|
||||
title: Text('审核通过',textAlign: TextAlign.center,style: TextStyle(
|
||||
|
||||
fontSize: 32.sp,
|
||||
color: Color(0xFF333333)
|
||||
),),
|
||||
onTap: () {
|
||||
Get.back();
|
||||
borrowStatus = 1;
|
||||
setState(() {});
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
title: Text('审核失败',textAlign: TextAlign.center,style: TextStyle(
|
||||
|
||||
fontSize: 32.sp,
|
||||
color: Color(0xFF333333)
|
||||
),),
|
||||
onTap: () {
|
||||
Get.back();
|
||||
borrowStatus = 0;
|
||||
setState(() {});
|
||||
},
|
||||
),
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 16.w,
|
||||
color: Color(0xFFF7F7F7),
|
||||
),
|
||||
ListTile(
|
||||
title: Text('取消',textAlign: TextAlign.center,style: TextStyle(
|
||||
|
||||
fontSize: 32.sp,
|
||||
color: Color(0xFF333333)
|
||||
),),
|
||||
onTap: () {
|
||||
Get.back();
|
||||
borrowStatus = -1;
|
||||
setState(() {});
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
||||
_buildRow(String title, Widget child) {
|
||||
return Row(
|
||||
children: [
|
||||
AkuBox.h(96),
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor,
|
||||
fontSize: 28.w,
|
||||
),
|
||||
),
|
||||
AkuBox.w(80),
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: child,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
_buildCard(int status) {
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
borrowStatus = status;
|
||||
setState(() {});
|
||||
},
|
||||
child: Container(
|
||||
height: 56.w,
|
||||
width: 112.w,
|
||||
child: Text(
|
||||
{
|
||||
1: '完好',
|
||||
2: '损坏',
|
||||
3: '丢失',
|
||||
}[status]!,
|
||||
style: TextStyle(
|
||||
color: borrowStatus == status
|
||||
? AppStyle.secondaryColor
|
||||
: AppStyle.minorTextColor,
|
||||
fontSize: 28.sp,
|
||||
),
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
border: Border.all(
|
||||
color: borrowStatus == status
|
||||
? AppStyle.secondaryColor
|
||||
: AppStyle.minorTextColor,
|
||||
width: 2.w,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue