cleared console problems

This commit is contained in:
amirrezaghabeli
2025-09-16 08:36:03 +03:30
parent b6a3598cbf
commit c421f85c95
67 changed files with 236 additions and 196 deletions
+7 -7
View File
@@ -35,7 +35,7 @@ class _MobileProfilePageState extends State<MobileProfilePage> {
AppToast.error(context, viewModel.errorMessage!);
}
if (viewModel.loggedOut) {
Router.neglect(context, () => LoginScreenRoute().go(context));
Router.neglect(context, () => const LoginScreenRoute().go(context));
}
}
@@ -53,7 +53,7 @@ class _MobileProfilePageState extends State<MobileProfilePage> {
body: Consumer<ProfileViewModel>(
builder: (context, viewModel, child) {
if (viewModel.isLoading) {
return Center(
return const Center(
child: CircularProgressIndicator(color: AppColors.secondary50),
);
}
@@ -63,7 +63,7 @@ class _MobileProfilePageState extends State<MobileProfilePage> {
}
if (viewModel.companyProfileData == null) {
return Center(child: Text(CommonStrings.noData));
return const Center(child: Text(CommonStrings.noData));
}
return Padding(
@@ -87,7 +87,7 @@ class _MobileProfilePageState extends State<MobileProfilePage> {
description:
viewModel.companyProfileData!.registrationNumber!,
),
TitleDescription(
const TitleDescription(
title: ProfileStrings.businessType,
description: '-',
),
@@ -121,13 +121,13 @@ class _MobileProfilePageState extends State<MobileProfilePage> {
color: AppColors.grey70,
),
),
Spacer(),
const Spacer(),
SvgPicture.asset(AssetsManager.sun),
SizedBox(width: 12.0.w()),
SizedBox(
width: 52.0.w(),
height: 32.0.h(),
child: ThemeToggle(),
child: const ThemeToggle(),
),
SizedBox(width: 12.0.w()),
SvgPicture.asset(AssetsManager.moon),
@@ -137,7 +137,7 @@ class _MobileProfilePageState extends State<MobileProfilePage> {
SizedBox(height: 24.0.h()),
Divider(color: AppColors.dividerColor, thickness: 1),
SizedBox(height: 24.0.h()),
Spacer(),
const Spacer(),
InkWell(
onTap: () => viewModel.logout(),
borderRadius: BorderRadius.circular(100),