fix : ui changes pre release
This commit is contained in:
@@ -38,7 +38,7 @@ class BuyInProvincePage extends GetView<BuyInProvinceLogic> {
|
|||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: RSegment(
|
child: RSegment(
|
||||||
children: ['در انتظار', 'همه'],
|
children: ['در انتظار', 'بایگانی'],
|
||||||
selectedIndex: 0,
|
selectedIndex: 0,
|
||||||
borderColor: const Color(0xFFB4B4B4),
|
borderColor: const Color(0xFFB4B4B4),
|
||||||
selectedBorderColor: AppColor.blueNormal,
|
selectedBorderColor: AppColor.blueNormal,
|
||||||
|
|||||||
@@ -248,9 +248,10 @@ class BuyInProvinceAllPage extends GetView<BuyInProvinceAllLogic> {
|
|||||||
Color getLabelColor(String? item) {
|
Color getLabelColor(String? item) {
|
||||||
switch (item) {
|
switch (item) {
|
||||||
case 'pending':
|
case 'pending':
|
||||||
return AppColor.greenLightHover;
|
|
||||||
case 'accepted':
|
|
||||||
return AppColor.blueLight;
|
return AppColor.blueLight;
|
||||||
|
case 'accepted':
|
||||||
|
|
||||||
|
return AppColor.greenLightHover;
|
||||||
case 'rejected':
|
case 'rejected':
|
||||||
return AppColor.redLightHover;
|
return AppColor.redLightHover;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -60,7 +60,14 @@ class BuyOutOfProvincePage extends GetView<BuyOutOfProvinceLogic> {
|
|||||||
],
|
],
|
||||||
floatingActionButton: RFab.add(
|
floatingActionButton: RFab.add(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Get.bottomSheet(addPurchasedInformationBottomSheet(), isScrollControlled: true);
|
Get.bottomSheet(
|
||||||
|
addPurchasedInformationBottomSheet(),
|
||||||
|
isScrollControlled: true,
|
||||||
|
ignoreSafeArea: false,
|
||||||
|
).whenComplete(() {
|
||||||
|
controller.resetSubmitForm();
|
||||||
|
|
||||||
|
},);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
floatingActionButtonLocation: FloatingActionButtonLocation.startFloat,
|
floatingActionButtonLocation: FloatingActionButtonLocation.startFloat,
|
||||||
@@ -190,6 +197,7 @@ class BuyOutOfProvincePage extends GetView<BuyOutOfProvinceLogic> {
|
|||||||
addPurchasedInformationBottomSheet(true),
|
addPurchasedInformationBottomSheet(true),
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
).whenComplete(() {
|
).whenComplete(() {
|
||||||
|
|
||||||
controller.resetSubmitForm();
|
controller.resetSubmitForm();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -292,7 +300,6 @@ class BuyOutOfProvincePage extends GetView<BuyOutOfProvinceLogic> {
|
|||||||
|
|
||||||
Widget addPurchasedInformationBottomSheet([bool isOnEdit = false]) {
|
Widget addPurchasedInformationBottomSheet([bool isOnEdit = false]) {
|
||||||
return BaseBottomSheet(
|
return BaseBottomSheet(
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Form(
|
child: Form(
|
||||||
key: controller.formKey,
|
key: controller.formKey,
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -374,7 +381,6 @@ class BuyOutOfProvincePage extends GetView<BuyOutOfProvinceLogic> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,9 @@ class SalesInProvincePage extends GetView<SalesInProvinceLogic> {
|
|||||||
addOrEditBottomSheet(),
|
addOrEditBottomSheet(),
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
);
|
).whenComplete(() {
|
||||||
|
controller.clearForm();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
||||||
@@ -326,7 +328,9 @@ class SalesInProvincePage extends GetView<SalesInProvinceLogic> {
|
|||||||
addOrEditBottomSheet(true),
|
addOrEditBottomSheet(true),
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
);
|
).whenComplete(() {
|
||||||
|
controller.clearForm();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
textStyle: AppFonts.yekan20.copyWith(color: Colors.white),
|
textStyle: AppFonts.yekan20.copyWith(color: Colors.white),
|
||||||
backgroundColor: AppColor.greenNormal,
|
backgroundColor: AppColor.greenNormal,
|
||||||
|
|||||||
@@ -55,7 +55,13 @@ class SegmentationPage extends GetView<SegmentationLogic> {
|
|||||||
floatingActionButtonLocation: FloatingActionButtonLocation.startFloat,
|
floatingActionButtonLocation: FloatingActionButtonLocation.startFloat,
|
||||||
floatingActionButton: RFab.add(
|
floatingActionButton: RFab.add(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Get.bottomSheet(addOrEditBottomSheet(), isScrollControlled: true);
|
Get.bottomSheet(
|
||||||
|
addOrEditBottomSheet(),
|
||||||
|
isScrollControlled: true,
|
||||||
|
ignoreSafeArea: false,
|
||||||
|
).whenComplete(() {
|
||||||
|
controller.clearForm();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@@ -189,6 +195,7 @@ class SegmentationPage extends GetView<SegmentationLogic> {
|
|||||||
Get.bottomSheet(
|
Get.bottomSheet(
|
||||||
addOrEditBottomSheet(true),
|
addOrEditBottomSheet(true),
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
|
ignoreSafeArea: false,
|
||||||
).whenComplete(() {
|
).whenComplete(() {
|
||||||
controller.clearForm();
|
controller.clearForm();
|
||||||
});
|
});
|
||||||
@@ -221,7 +228,7 @@ class SegmentationPage extends GetView<SegmentationLogic> {
|
|||||||
|
|
||||||
Widget addOrEditBottomSheet([bool isOnEdit = false]) {
|
Widget addOrEditBottomSheet([bool isOnEdit = false]) {
|
||||||
return BaseBottomSheet(
|
return BaseBottomSheet(
|
||||||
height: 300.h,
|
height: 340.h,
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
child: Form(
|
child: Form(
|
||||||
key: controller.formKey,
|
key: controller.formKey,
|
||||||
|
|||||||
@@ -11,8 +11,9 @@ class BaseBottomSheet extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return SafeArea(
|
||||||
height: height ?? MediaQuery.of(context).size.height * 0.85,
|
child: Container(
|
||||||
|
height: height ?? MediaQuery.of(context).size.height * 0.80,
|
||||||
padding: EdgeInsets.symmetric(vertical: 15, horizontal: 10),
|
padding: EdgeInsets.symmetric(vertical: 15, horizontal: 10),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: bgColor ?? Colors.white,
|
color: bgColor ?? Colors.white,
|
||||||
@@ -21,11 +22,7 @@ class BaseBottomSheet extends StatelessWidget {
|
|||||||
topRight: Radius.circular(25),
|
topRight: Radius.circular(25),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
spacing: 8,
|
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
@@ -54,10 +51,8 @@ class BaseBottomSheet extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
SizedBox(height: 2),
|
SizedBox(height: 2),
|
||||||
|
Expanded(child: SingleChildScrollView(child: child)),
|
||||||
child,
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user