Skip to content

Commit

Permalink
Tiny refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnicJelle committed Jul 31, 2023
1 parent be42f6b commit d18b205
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/tech_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ class TechApp extends MaterialApp {
}) : super(
theme: ThemeData(
useMaterial3: false,
appBarTheme: AppBarTheme(color: primary),
colorScheme: ColorScheme.light(
primary: primary,
secondary: secondary,
),
),
darkTheme: ThemeData(
useMaterial3: false,
appBarTheme: AppBarTheme(color: primary),
colorScheme: ColorScheme.dark(
primary: primary,
secondary: secondary,
Expand All @@ -36,6 +34,7 @@ class TechApp extends MaterialApp {
builder: (BuildContext context, Widget? child) {
return Theme(
data: Theme.of(context).copyWith(
appBarTheme: AppBarTheme(color: primary),
textTheme: Theme.of(context).textTheme.apply(
fontSizeFactor: fontSizeFactor ?? 1.0,
fontFamily: fontFamily,
Expand Down

0 comments on commit d18b205

Please sign in to comment.