fix: some ui bug

This commit is contained in:
2025-11-03 09:04:28 +03:30
parent f93d9bb275
commit 6269445536
5 changed files with 18 additions and 10 deletions

View File

@@ -26,7 +26,6 @@ class HomePage extends GetView<HomeLogic> {
mainInformation(),
SizedBox(height: 8.h),
WidelyUsedWidget(),
],
),
),
@@ -34,12 +33,14 @@ class HomePage extends GetView<HomeLogic> {
}
Widget buildColumn(Widget widget, String title) {
return Container(
height: 70.h,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
spacing: 8, children: [widget, Text(title)]));
height: 70.h,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
spacing: 8,
children: [widget, Text(title)],
),
);
}
InkWell mainInformation() {
@@ -440,6 +441,7 @@ class HomePage extends GetView<HomeLogic> {
isLoading: data.value == null,
description: data.value?.totalGovernmentalRemainWeight?.separatedByCommaFa ?? '0',
iconPath: Assets.vec.cubeCardGovermentSvg.path,
iconColor: AppColor.textColor,
bgDescriptionColor: const Color(0xFFF5ECEE),
bgLabelColor: const Color(0xFFDEC1C7),

View File

@@ -70,6 +70,9 @@ class StewardRootPage extends GetView<StewardRootLogic> {
icon: Assets.vec.buySvg.path,
isSelected: controller.currentPage.value == 0,
onTap: () {
Get.nestedKey(
stewardFirstKey,
)?.currentState?.popUntil((route) => route.isFirst);
Get.nestedKey(
stewardSecondKey,
)?.currentState?.popUntil((route) => route.isFirst);
@@ -85,6 +88,9 @@ class StewardRootPage extends GetView<StewardRootLogic> {
Get.nestedKey(
stewardFirstKey,
)?.currentState?.popUntil((route) => route.isFirst);
Get.nestedKey(
stewardSecondKey,
)?.currentState?.popUntil((route) => route.isFirst);
controller.changePage(1);
},
),