cleared console problems
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user