Skip to content

Commit c310074

Browse files
committed
Remove SplashScreen and set Login as the home screen; update screen dimensions in Login widget
1 parent c6cab5d commit c310074

File tree

3 files changed

+3
-158
lines changed

3 files changed

+3
-158
lines changed

lib/main.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import 'package:bottle_crm/ui/screens/authentication/change_password.dart';
55
import 'package:bottle_crm/ui/screens/authentication/companies_List.dart';
66
import 'package:bottle_crm/ui/screens/authentication/forgot_password.dart';
77
import 'package:bottle_crm/ui/screens/authentication/login.dart';
8-
import 'package:bottle_crm/splash_screen.dart';
98
import 'package:bottle_crm/ui/screens/authentication/profile.dart';
109
import 'package:bottle_crm/ui/screens/authentication/register.dart';
1110
import 'package:bottle_crm/ui/screens/cases/case_create.dart';
@@ -65,7 +64,7 @@ class MyApp extends StatelessWidget {
6564
primaryColor: Color.fromRGBO(62, 121, 247, 1),
6665
secondaryHeaderColor: Color.fromRGBO(112, 121, 128, 1),
6766
dividerColor: Color.fromRGBO(69, 85, 96, 1)),
68-
home: SplashScreen(),
67+
home: Login(),
6968
onUnknownRoute: (RouteSettings settings) {
7069
return MaterialPageRoute<void>(
7170
settings: settings,

lib/splash_screen.dart

Lines changed: 0 additions & 156 deletions
This file was deleted.

lib/ui/screens/authentication/login.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,8 @@ class _LoginState extends State<Login> {
624624

625625
@override
626626
Widget build(BuildContext context) {
627+
screenWidth = MediaQuery.of(context).size.width;
628+
screenHeight = MediaQuery.of(context).size.height;
627629
return Scaffold(
628630
body: Container(
629631
decoration: BoxDecoration(color: Color.fromARGB(226, 73, 128, 255)),

0 commit comments

Comments
 (0)