Skip to content

Commit

Permalink
✨ Fix grey screen on selection
Browse files Browse the repository at this point in the history
  • Loading branch information
wrngwrld committed Feb 5, 2025
1 parent a4f5787 commit 08edf50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down Expand Up @@ -92,14 +94,18 @@ class _AppWithThemeState extends State<AppWithTheme>
final theme = Provider.of<ThemeChanger>(context);

return CupertinoApp(
color: CupertinoColors.activeGreen,
debugShowCheckedModeBanner: false,
home: const BoardList(),
theme: CupertinoThemeData(
brightness: theme.getTheme() == ThemeData.dark()
? Brightness.dark
: Brightness.light,
),
localizationsDelegates: const [
DefaultCupertinoLocalizations.delegate,
DefaultMaterialLocalizations.delegate,
DefaultWidgetsLocalizations.delegate,
],
);
}
}

0 comments on commit 08edf50

Please sign in to comment.