fix :
some ui bug
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:launchMode="singleTop"
|
android:launchMode="singleTop"
|
||||||
android:taskAffinity=""
|
android:taskAffinity=""
|
||||||
|
android:enableOnBackInvokedCallback="true"
|
||||||
android:theme="@style/LaunchTheme"
|
android:theme="@style/LaunchTheme"
|
||||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||||
android:hardwareAccelerated="true"
|
android:hardwareAccelerated="true"
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class DisplayInformationPage extends GetView<DisplayInformationLogic> {
|
|||||||
Expanded(child: ROutlinedElevated(
|
Expanded(child: ROutlinedElevated(
|
||||||
height: 40,
|
height: 40,
|
||||||
text: 'انصراف', onPressed: (){
|
text: 'انصراف', onPressed: (){
|
||||||
Get.offAllNamed(SupervisionRoutes.supervision);
|
Get.until((route) => route.isFirst);
|
||||||
}))
|
}))
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class SupervisionFilterPage extends GetView<SupervisionFilterLogic> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return PopScope(
|
return PopScope(
|
||||||
canPop: controller.sheetController.value.handleBack(),
|
canPop: controller.sheetController.value.handleBack,
|
||||||
onPopInvokedWithResult: (didPop, result) {
|
onPopInvokedWithResult: (didPop, result) {
|
||||||
if (!didPop &&
|
if (!didPop &&
|
||||||
controller.sheetController.value.bottomSheets.isNotEmpty) {
|
controller.sheetController.value.bottomSheets.isNotEmpty) {
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ class ProfilePage extends GetView<ProfileLogic> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
|
||||||
spacing: 16,
|
spacing: 16,
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
@@ -77,12 +76,12 @@ class ProfilePage extends GetView<ProfileLogic> {
|
|||||||
itemCount: controller.roles.length,
|
itemCount: controller.roles.length,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Expanded(
|
||||||
padding: const EdgeInsets.symmetric(
|
child: Padding(
|
||||||
horizontal: 30,
|
padding: const EdgeInsets.symmetric(
|
||||||
vertical: 10,
|
horizontal: 30,
|
||||||
),
|
vertical: 10,
|
||||||
child: Expanded(
|
),
|
||||||
child: ObxValue((data) {
|
child: ObxValue((data) {
|
||||||
return switch (data.value) {
|
return switch (data.value) {
|
||||||
0 => userProfileInformation(),
|
0 => userProfileInformation(),
|
||||||
|
|||||||
@@ -116,12 +116,13 @@ class DraggableBottomSheetController extends GetxController {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
bool get handleBack{
|
||||||
bool handleBack() {
|
if (bottomSheets.isNotEmpty) {
|
||||||
if (bottomSheets.isNotEmpty) {
|
removeLastBottomSheet();
|
||||||
removeLastBottomSheet();
|
return true;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user