auth changes

This commit is contained in:
mohammad
2024-08-08 12:47:12 +03:00
parent 73d49d5518
commit 8e8f810d1e
7 changed files with 35 additions and 44 deletions

View File

@ -2,8 +2,8 @@ import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:syncrow_web/pages/auth/bloc/auth_bloc.dart';
import 'package:syncrow_web/pages/auth/view/login_page.dart';
import 'package:syncrow_web/pages/home/view/home_page.dart';
import 'package:syncrow_web/services/locator.dart';
import 'package:syncrow_web/utils/color_manager.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
@ -34,18 +34,25 @@ class MyApp extends StatelessWidget {
),
theme: ThemeData(
textTheme: const TextTheme(
bodySmall:TextStyle(),
bodyLarge:TextStyle(),
bodyMedium:TextStyle(),
bodySmall: TextStyle(
fontSize: 13,
color: ColorsManager.whiteColors,
fontWeight: FontWeight.bold),
bodyMedium: TextStyle(color: Colors.black87, fontSize: 14),
bodyLarge: TextStyle(fontSize: 16,color: Colors.white),
headlineSmall: TextStyle(color: Colors.black87, fontSize: 18),
headlineMedium: TextStyle(color: Colors.black87, fontSize: 20),
headlineLarge: TextStyle(
color: Colors.white,
fontSize: 24,
fontWeight: FontWeight.bold,
),
),
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.deepPurple), // Set up color scheme
useMaterial3: true, // Enable Material 3
),
home: isLoggedIn == 'Success'?
const HomePage()
:
const LoginPage(),
home:LoginPage(),
);
}
}