fix : token expire
This commit is contained in:
@@ -10,6 +10,7 @@ class AuthPage extends GetView<AuthLogic> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
iLog("AuthPage");
|
||||
return Scaffold(
|
||||
body: Stack(
|
||||
alignment: Alignment.center,
|
||||
|
||||
@@ -100,7 +100,7 @@ class BuyInProvinceAllPage extends GetView<BuyInProvinceAllLogic> {
|
||||
),
|
||||
|
||||
Text(
|
||||
item.steward?.guildsName ?? 'N/A',
|
||||
item.toSteward?.guildsName ?? 'N/Aaq',
|
||||
textAlign: TextAlign.start,
|
||||
style: AppFonts.yekan12.copyWith(color: AppColor.bgDark),
|
||||
),
|
||||
|
||||
@@ -50,9 +50,9 @@ class RootLogic extends GetxController {
|
||||
localDatasource = diChicken.get<ChickenLocalDataSource>();
|
||||
chickenRepository = diChicken.get<ChickenRepository>();
|
||||
|
||||
localDatasource.openBox().then((value) async {
|
||||
/*localDatasource.openBox().then((value) async {
|
||||
widelyUsedList.value = localDatasource.getAllWidely();
|
||||
});
|
||||
});*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ class SalesInProvincePage extends GetView<SalesInProvinceLogic> {
|
||||
);
|
||||
}
|
||||
|
||||
itemListWidget(AllocatedMadeModel item) {
|
||||
Row itemListWidget(AllocatedMadeModel item) {
|
||||
return Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
@@ -144,7 +144,7 @@ class SalesInProvincePage extends GetView<SalesInProvinceLogic> {
|
||||
spacing: 4,
|
||||
children: [
|
||||
Text(
|
||||
controller.getBuyerInformation(item)?.user?.fullname ?? 'N/A',
|
||||
controller.getBuyerInformation(item)?.user?.fullname ?? 'N/Aشششش',
|
||||
textAlign: TextAlign.center,
|
||||
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(
|
||||
padding: EdgeInsets.symmetric(horizontal: 8),
|
||||
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)),
|
||||
|
||||
@@ -107,9 +107,5 @@ class AppInterceptor extends Interceptor {
|
||||
//TODO
|
||||
void _handleRefreshFailure() {
|
||||
ApiHandler.cancelAllRequests("Token refresh failed");
|
||||
|
||||
if (Get.currentRoute != '/Auth') {
|
||||
Get.offAllNamed('/Auth', arguments: authArguments ?? 'Module.chicken');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user