Skip to content

Commit

Permalink
changed theme of app
Browse files Browse the repository at this point in the history
  • Loading branch information
Saisriram2003 committed Apr 5, 2024
1 parent 8df1b3b commit 29f4cf7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 0 additions & 2 deletions bu_passport/lib/auth/auth_gate.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'package:bu_passport/pages/onboarding_page.dart';
import 'package:bu_passport/main.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import '../pages/navigation_page.dart';
Expand Down
13 changes: 8 additions & 5 deletions bu_passport/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import 'package:bu_passport/firebase_options.dart';
import 'package:bu_passport/pages/navigation_page.dart';
import 'package:bu_passport/pages/login_page.dart';
import 'package:bu_passport/pages/calendar_page.dart';
import 'package:bu_passport/pages/profile_page.dart';
import 'package:bu_passport/pages/signup_page.dart';
import 'package:bu_passport/pages/onboarding_page.dart';

Expand All @@ -20,7 +17,7 @@ void main() async {
options: DefaultFirebaseOptions.currentPlatform,
);

// Timezone initialization for check in
// Timezone initialization for check in
tz.initializeTimeZones();
var estLocation = tz.getLocation('America/New_York');
// Setting local location to EST (since all BU events are in EST)
Expand All @@ -35,7 +32,13 @@ class MyApp extends StatelessWidget {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.green,
useMaterial3: true,

// Define the default brightness and colors.
colorScheme: ColorScheme.fromSeed(
seedColor: Color(0xFFCC0000),
brightness: Brightness.light,
),
),
home: const AuthGate(),
routes: {
Expand Down
5 changes: 1 addition & 4 deletions bu_passport/lib/pages/navigation_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ class NavigationPage extends StatelessWidget {

@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: NavigationPageContent(),
);
return NavigationPageContent();
}
}

Expand Down

0 comments on commit 29f4cf7

Please sign in to comment.