Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed and added auto build project #4

Merged
merged 3 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
path: ./build/web


3 changes: 2 additions & 1 deletion lib/app_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}
Expand Down
Loading