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 _DesktopProfilePageState extends State<DesktopProfilePage> {
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 _DesktopProfilePageState extends State<DesktopProfilePage> {
body: Consumer<ProfileViewModel>(
builder: (context, viewModel, child) {
if (viewModel.isLoading) {
return Center(
return const Center(
child: CircularProgressIndicator(color: AppColors.secondary50),
);
}
@@ -61,12 +61,12 @@ class _DesktopProfilePageState extends State<DesktopProfilePage> {
}
if (viewModel.companyProfileData == null) {
return Center(child: Text(CommonStrings.noData));
return const Center(child: Text(CommonStrings.noData));
}
return Column(
children: [
DesktopNavigationWidget(
const DesktopNavigationWidget(
currentIndex: 4, // Tenders index
),
SizedBox(
@@ -87,7 +87,7 @@ class _DesktopProfilePageState extends State<DesktopProfilePage> {
description:
viewModel.companyProfileData!.registrationNumber!,
),
TitleDescription(
const TitleDescription(
title: ProfileStrings.businessType,
description: '-',
),
@@ -122,13 +122,13 @@ class _DesktopProfilePageState extends State<DesktopProfilePage> {
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),
+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),
+1 -1
View File
@@ -10,7 +10,7 @@ class ProfileScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ResponsiveBuilder(
return const ResponsiveBuilder(
mobile: MobileProfilePage(),
tablet: TabletProfilePage(),
desktop: DesktopProfilePage(),
+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),