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
@@ -36,7 +36,7 @@ class _TabletProfilePageState extends State<TabletProfilePage> {
AppToast.error(context, viewModel.errorMessage!);
}
if (viewModel.loggedOut) {
Router.neglect(context, () => LoginScreenRoute().go(context));
Router.neglect(context, () => const LoginScreenRoute().go(context));
}
}
@@ -52,7 +52,7 @@ class _TabletProfilePageState extends State<TabletProfilePage> {
return Consumer<ProfileViewModel>(
builder: (context, viewModel, child) {
if (viewModel.isLoading) {
return Center(
return const Center(
child: CircularProgressIndicator(color: AppColors.secondary50),
);
}
@@ -61,7 +61,7 @@ class _TabletProfilePageState extends State<TabletProfilePage> {
}
if (viewModel.companyProfileData == null) {
return Center(child: Text(CommonStrings.noData));
return const Center(child: Text(CommonStrings.noData));
}
return SafeArea(
@@ -70,7 +70,7 @@ class _TabletProfilePageState extends State<TabletProfilePage> {
backgroundColor: AppColors.backgroundColor,
appBar: tabletAppBar(title: ProfileStrings.profileTitle, key: key),
drawer: TabletNavigationWidget(currentIndex: 4),
drawer: const TabletNavigationWidget(currentIndex: 4),
body: Padding(
padding: EdgeInsets.symmetric(
horizontal: 24.0.w(),
@@ -92,7 +92,7 @@ class _TabletProfilePageState extends State<TabletProfilePage> {
description:
viewModel.companyProfileData!.registrationNumber!,
),
TitleDescription(
const TitleDescription(
title: ProfileStrings.businessType,
description: '-',
),
@@ -127,13 +127,13 @@ class _TabletProfilePageState extends State<TabletProfilePage> {
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),