fix : token expire

This commit is contained in:
2025-09-02 10:56:20 +03:30
parent 079b3ce78d
commit dfb9298097
5 changed files with 7 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ class AuthPage extends GetView<AuthLogic> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
iLog("AuthPage");
return Scaffold( return Scaffold(
body: Stack( body: Stack(
alignment: Alignment.center, alignment: Alignment.center,

View File

@@ -100,7 +100,7 @@ class BuyInProvinceAllPage extends GetView<BuyInProvinceAllLogic> {
), ),
Text( Text(
item.steward?.guildsName ?? 'N/A', item.toSteward?.guildsName ?? 'N/Aaq',
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: AppFonts.yekan12.copyWith(color: AppColor.bgDark), style: AppFonts.yekan12.copyWith(color: AppColor.bgDark),
), ),

View File

@@ -50,9 +50,9 @@ class RootLogic extends GetxController {
localDatasource = diChicken.get<ChickenLocalDataSource>(); localDatasource = diChicken.get<ChickenLocalDataSource>();
chickenRepository = diChicken.get<ChickenRepository>(); chickenRepository = diChicken.get<ChickenRepository>();
localDatasource.openBox().then((value) async { /*localDatasource.openBox().then((value) async {
widelyUsedList.value = localDatasource.getAllWidely(); widelyUsedList.value = localDatasource.getAllWidely();
}); });*/
} }

View File

@@ -132,7 +132,7 @@ class SalesInProvincePage extends GetView<SalesInProvinceLogic> {
); );
} }
itemListWidget(AllocatedMadeModel item) { Row itemListWidget(AllocatedMadeModel item) {
return Row( return Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [ children: [
@@ -144,7 +144,7 @@ class SalesInProvincePage extends GetView<SalesInProvinceLogic> {
spacing: 4, spacing: 4,
children: [ children: [
Text( Text(
controller.getBuyerInformation(item)?.user?.fullname ?? 'N/A', controller.getBuyerInformation(item)?.user?.fullname ?? 'N/Aشششش',
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal),
), ),
@@ -208,7 +208,7 @@ class SalesInProvincePage extends GetView<SalesInProvinceLogic> {
); );
} }
itemListExpandedWidget(AllocatedMadeModel item, int index) { Container itemListExpandedWidget(AllocatedMadeModel item, int index) {
return Container( return Container(
padding: EdgeInsets.symmetric(horizontal: 8), padding: EdgeInsets.symmetric(horizontal: 8),
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)), decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)),

View File

@@ -107,9 +107,5 @@ class AppInterceptor extends Interceptor {
//TODO //TODO
void _handleRefreshFailure() { void _handleRefreshFailure() {
ApiHandler.cancelAllRequests("Token refresh failed"); ApiHandler.cancelAllRequests("Token refresh failed");
if (Get.currentRoute != '/Auth') {
Get.offAllNamed('/Auth', arguments: authArguments ?? 'Module.chicken');
}
} }
} }