From 2ec628352f537fec7f647199aaa2e032611cae5c Mon Sep 17 00:00:00 2001 From: Tony Bark <35226681+tonytins@users.noreply.github.com> Date: Wed, 7 Sep 2022 10:30:43 -0400 Subject: [PATCH] Dark theme - Enabled Linux building - Tweaked Github actions --- .github/workflows/flutter.yml | 24 ++++++++++++------------ lib/main.dart | 8 +++++--- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index 3b0ca51..0bfb130 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -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 diff --git a/lib/main.dart b/lib/main.dart index 0b97a20..b501cb9 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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, + ); } }