Skip to content

Commit

Permalink
Merge pull request #4 from pratikmmohite/main
Browse files Browse the repository at this point in the history
Fixed and added auto build project
  • Loading branch information
pratikmmohite authored Apr 14, 2024
2 parents fc261da + b5668f1 commit 8f3c283
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
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

0 comments on commit 8f3c283

Please sign in to comment.