router and assets updated

This commit is contained in:
amirrezaghabeli
2025-08-06 09:07:55 +03:30
parent 91a7634298
commit 337fcdbcbc
5 changed files with 55 additions and 4 deletions
+8 -1
View File
@@ -1,5 +1,6 @@
// lib/views/login_screen.dart
import 'package:flutter/material.dart';
import 'package:tm_app/core/routes/app_routes.dart';
import '../../core/constants/assets.dart';
import '../../core/constants/strings.dart';
@@ -51,6 +52,7 @@ class _LoginScreenState extends State<LoginScreen> {
@override
Widget build(BuildContext context) {
SizeConfig.init(context);
return Scaffold(
backgroundColor: Colors.white,
body: Center(
@@ -85,7 +87,12 @@ class _LoginScreenState extends State<LoginScreen> {
SizedBox(height: 32.0.h()),
BaseButton(
isEnabled: _isLoginEnabled,
onPressed: _isLoginEnabled ? () {} : null,
onPressed:
_isLoginEnabled
? () {
HomeRouteData().go(context);
}
: null,
),
],
),