feat :
1 - add mobile inspector fix : 1 - fix ui onTap location 2 - fix ui action
This commit is contained in:
@@ -27,7 +27,6 @@ class ActionPage extends GetView<ActionLogic> {
|
||||
title: controller.headersTitle[index],
|
||||
onTap: () {
|
||||
controller.updateSelectedIndex(index);
|
||||
|
||||
},
|
||||
isSelected: controller.selectedIndex.value == index,
|
||||
);
|
||||
@@ -67,8 +66,9 @@ class ActionPage extends GetView<ActionLogic> {
|
||||
child: ROutlinedElevated(
|
||||
text: 'خیر',
|
||||
onPressed: () {
|
||||
|
||||
controller.updateSelectedIndex(controller.previousIndex.value);
|
||||
controller.updateSelectedIndex(
|
||||
controller.previousIndex.value,
|
||||
);
|
||||
|
||||
Get.back();
|
||||
},
|
||||
@@ -101,7 +101,7 @@ class ActionPage extends GetView<ActionLogic> {
|
||||
|
||||
Container statisticsWidget() => Container(
|
||||
margin: EdgeInsets.only(top: 50),
|
||||
padding: EdgeInsets.symmetric(horizontal: 35, vertical: 50),
|
||||
padding: EdgeInsets.symmetric(vertical: 50),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.only(
|
||||
@@ -113,8 +113,7 @@ class ActionPage extends GetView<ActionLogic> {
|
||||
children: [
|
||||
Container(
|
||||
height: 32,
|
||||
margin: EdgeInsets.only(top: 10, left: 22, right: 22),
|
||||
|
||||
margin: EdgeInsets.symmetric(horizontal: 22,vertical: 10),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
@@ -143,6 +142,7 @@ class ActionPage extends GetView<ActionLogic> {
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
optionWidget(
|
||||
selected: controller.filter1Index,
|
||||
title: 'فیلترتراکنش ها',
|
||||
@@ -155,28 +155,30 @@ class ActionPage extends GetView<ActionLogic> {
|
||||
),
|
||||
|
||||
SizedBox(height: 10),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
|
||||
children: [
|
||||
vecWidgetWithOnTap(
|
||||
assets: Assets.vecPdfDownloadSvg,
|
||||
onTap: () {},
|
||||
width: 64,
|
||||
height: 64,
|
||||
),
|
||||
vecWidgetWithOnTap(
|
||||
assets: Assets.vecExcelDownloadSvg,
|
||||
onTap: () {},
|
||||
width: 64,
|
||||
height: 64,
|
||||
),
|
||||
],
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
vecWidgetWithOnTap(
|
||||
assets: Assets.vecPdfDownloadSvg,
|
||||
onTap: () {},
|
||||
width: 64,
|
||||
height: 64,
|
||||
),
|
||||
vecWidgetWithOnTap(
|
||||
assets: Assets.vecExcelDownloadSvg,
|
||||
onTap: () {},
|
||||
width: 64,
|
||||
height: 64,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
SizedBox(height: 16),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
spacing: 25,
|
||||
spacing: 20,
|
||||
children: [
|
||||
headerInfo(title: 'تعداد تراکنش ها', description: '183 '),
|
||||
headerInfo(
|
||||
@@ -645,39 +647,46 @@ class ActionPage extends GetView<ActionLogic> {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal),
|
||||
Row(),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 22,vertical: 10),
|
||||
child: Text(
|
||||
title,
|
||||
textAlign: TextAlign.center,
|
||||
style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal),
|
||||
),
|
||||
),
|
||||
|
||||
Wrap(
|
||||
runSpacing: 8,
|
||||
spacing: 8,
|
||||
children:
|
||||
options
|
||||
.map(
|
||||
(e) => ObxValue((data) {
|
||||
return ChoiceChip(
|
||||
onSelected: (value) {
|
||||
selected.value = options.indexOf(e);
|
||||
},
|
||||
selectedColor: AppColor.blueNormal,
|
||||
labelStyle:
|
||||
data.value == options.indexOf(e)
|
||||
? AppFonts.yekan13.copyWith(
|
||||
color: AppColor.whiteLight,
|
||||
)
|
||||
: AppFonts.yekan12.copyWith(
|
||||
color: AppColor.darkGreyNormalActive,
|
||||
),
|
||||
checkmarkColor: Colors.white,
|
||||
label: Text(e),
|
||||
selected: options.indexOf(e) == data.value,
|
||||
);
|
||||
}, selected),
|
||||
)
|
||||
.toList(),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 30),
|
||||
child: Wrap(
|
||||
runSpacing: 8,
|
||||
spacing: 8,
|
||||
children:
|
||||
options
|
||||
.map(
|
||||
(e) => ObxValue((data) {
|
||||
return ChoiceChip(
|
||||
onSelected: (value) {
|
||||
selected.value = options.indexOf(e);
|
||||
},
|
||||
selectedColor: AppColor.blueNormal,
|
||||
labelStyle:
|
||||
data.value == options.indexOf(e)
|
||||
? AppFonts.yekan13.copyWith(
|
||||
color: AppColor.whiteLight,
|
||||
)
|
||||
: AppFonts.yekan12.copyWith(
|
||||
color: AppColor.darkGreyNormalActive,
|
||||
),
|
||||
checkmarkColor: Colors.white,
|
||||
label: Text(e),
|
||||
selected: options.indexOf(e) == data.value,
|
||||
);
|
||||
}, selected),
|
||||
)
|
||||
.toList(),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
@@ -711,5 +720,4 @@ class ActionPage extends GetView<ActionLogic> {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user