Dark theme

- Enabled Linux building
- Tweaked Github actions
This commit is contained in:
Tony Bark 2022-09-07 10:30:43 -04:00
parent 62c4fafc23
commit 2ec628352f
2 changed files with 17 additions and 15 deletions

View file

@ -2,21 +2,21 @@ name: Flutter
on:
push:
branches: [main, master]
branches: [develop, main, "feature/**", "patch/**"]
pull_request:
branches: [main, master]
branches: [develop, main, "feature/**", "patch/**"]
jobs:
# linux:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: subosito/flutter-action@v2
# with:
# channel: "stable"
# - run: flutter pub get
# - run: flutter config --enable-linux-desktop
# - run: flutter build linux
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter pub get
- run: flutter config --enable-linux-desktop
- run: flutter build linux
android:
runs-on: ubuntu-latest

View file

@ -37,9 +37,11 @@ class BullsEyeApp extends StatelessWidget {
SystemChrome.setPreferredOrientations(
[DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight]);
return MaterialApp(
title: gameTitle,
// debugShowCheckedModeBanner: false,
home: GamePage());
title: gameTitle,
// debugShowCheckedModeBanner: false,
home: GamePage(), darkTheme: ThemeData(brightness: Brightness.dark),
themeMode: ThemeMode.system,
);
}
}