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
@@ -31,7 +31,7 @@ class _LoginDesktopPageState extends State<LoginDesktopPage> {
void _viewModelListener() {
if (viewModel.loggedInUser != null) {
Router.neglect(context, () => HomeRouteData().go(context));
Router.neglect(context, () => const HomeRouteData().go(context));
} else if (viewModel.errorMessage != null) {
AppToast.error(context, viewModel.errorMessage!);
}
@@ -92,7 +92,7 @@ class _LoginDesktopPageState extends State<LoginDesktopPage> {
),
SizedBox(height: 32.0.h()),
if (viewModel.isLoading)
BaseButton(
const BaseButton(
isEnabled: false,
onPressed: null,
isLoading: true,
+1 -1
View File
@@ -29,7 +29,7 @@ class _LoginMobilePageState extends State<LoginMobilePage> {
void _viewModelListener() {
if (viewModel.loggedInUser != null) {
Router.neglect(context, () => HomeRouteData().go(context));
Router.neglect(context, () => const HomeRouteData().go(context));
}
if (viewModel.errorMessage != null) {
AppToast.error(context, viewModel.errorMessage!);
+4 -4
View File
@@ -8,13 +8,13 @@ import 'package:tm_app/views/shared/responsive_builder.dart';
class LoginScreen extends StatelessWidget {
const LoginScreen({super.key});
@override
@override
Widget build(BuildContext context) {
SizeConfig.init(context);
return ResponsiveBuilder(
mobile: LoginMobilePage(),
return const ResponsiveBuilder(
mobile: LoginMobilePage(),
tablet: LoginTabletPage(),
desktop: LoginDesktopPage(),
);
}
}
}
+2 -2
View File
@@ -29,7 +29,7 @@ class _LoginTabletPageState extends State<LoginTabletPage> {
void _viewModelListener() {
if (viewModel.loggedInUser != null) {
Router.neglect(context, () => HomeRouteData().go(context));
Router.neglect(context, () => const HomeRouteData().go(context));
}
if (viewModel.errorMessage != null) {
AppToast.error(context, viewModel.errorMessage!);
@@ -84,7 +84,7 @@ class _LoginTabletPageState extends State<LoginTabletPage> {
),
SizedBox(height: 32.0.h()),
if (viewModel.isLoading)
BaseButton(
const BaseButton(
isEnabled: false,
onPressed: null,
isLoading: true,