Skip to content

Commit

Permalink
Enabled light / dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Lesches committed Apr 18, 2024
1 parent 75a8617 commit 7082171
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,24 @@
library app;

import "package:flutter/material.dart";
import "package:rover_dashboard/models.dart";
import "package:rover_dashboard/pages.dart";
import "package:rover_dashboard/widgets.dart";

/// The classic Binghamton green.
const binghamtonGreen = Color(0xff005943);

/// The main class for the app.
class RoverControlDashboard extends StatelessWidget {
class RoverControlDashboard extends ReusableReactiveWidget<SettingsModel> {
/// Creates the main app.
RoverControlDashboard() : super(models.settings);

@override
Widget build(BuildContext context) => MaterialApp(
Widget build(BuildContext context, SettingsModel model) => MaterialApp(
title: "Binghamton University Rover Team",
home: SplashPage(),
debugShowCheckedModeBanner: false,
themeMode: models.isReady ? model.dashboard.themeMode : ThemeMode.system,
theme: ThemeData(
useMaterial3: false,
colorScheme: ColorScheme.light(
Expand Down

0 comments on commit 7082171

Please sign in to comment.