diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml new file mode 100644 index 0000000..2a4a634 --- /dev/null +++ b/.github/workflows/dart.yml @@ -0,0 +1,35 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Dart + +on: + push: + branches: [ "live" ] + pull_request: + branches: [ "live" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup Flutter SDK + uses: flutter-actions/setup-flutter@v2 + + - name: Install dependencies + run: flutter pub get + + - name: Analyze project source + run: flutter build web + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v4.3.1 + with: + path: ./build/web + + diff --git a/lib/app_theme.dart b/lib/app_theme.dart index be15a6a..6ae1e9b 100644 --- a/lib/app_theme.dart +++ b/lib/app_theme.dart @@ -2,7 +2,8 @@ import 'package:flutter/material.dart'; class AppTheme { static ThemeData of(BuildContext context) { - return Theme.of(context).copyWith( + return ThemeData( + useMaterial3: true, appBarTheme: const AppBarTheme(centerTitle: false), ); }