🐛 Remove dark theme for a while to fix display issue

This commit is contained in:
LittleSheep 2024-03-24 01:33:47 +08:00
parent e54a506671
commit 827f8f1175

View File

@ -19,7 +19,6 @@ class SolarAgent extends StatelessWidget {
return MaterialApp.router( return MaterialApp.router(
title: 'SolarAgent', title: 'SolarAgent',
theme: ThemeData( theme: ThemeData(
brightness: Brightness.light,
colorScheme: ColorScheme.fromSwatch( colorScheme: ColorScheme.fromSwatch(
primarySwatch: Colors.indigo, primarySwatch: Colors.indigo,
accentColor: Colors.indigoAccent, accentColor: Colors.indigoAccent,
@ -28,16 +27,6 @@ class SolarAgent extends StatelessWidget {
), ),
useMaterial3: true, useMaterial3: true,
), ),
darkTheme: ThemeData(
brightness: Brightness.dark,
colorScheme: ColorScheme.fromSwatch(
primarySwatch: Colors.indigo,
accentColor: Colors.indigoAccent,
backgroundColor: Colors.black,
brightness: Brightness.dark,
),
useMaterial3: true,
),
routerConfig: router, routerConfig: router,
builder: (context, child) => Overlay( builder: (context, child) => Overlay(
initialEntries: [ initialEntries: [