-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
151 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,41 @@ | ||
name: Flutter build | ||
name: Deploy to Pages | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: ["main"] | ||
|
||
jobs: | ||
build: | ||
workflow_dispatch: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.0.0' | ||
flutter-version: '3.16.7' | ||
- run: flutter pub get | ||
- run: flutter build web --base-href "/skyhook-web/" | ||
- uses: JamesIves/[email protected] | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
branch: gh-pages | ||
folder: build/web | ||
path: 'build/web' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:provider/provider.dart'; | ||
import 'package:skyhook/ui/theme_notifier.dart'; | ||
import 'skyhook_app.dart'; | ||
|
||
void main() { | ||
runApp(ChangeNotifierProvider<ThemeNotifier>( | ||
create: (_) => ThemeNotifier(), | ||
child: const SkyhookApp(), | ||
)); | ||
runApp(const SkyhookApp()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:provider/provider.dart'; | ||
import 'package:skyhook/skyhook_home_page.dart'; | ||
import 'package:skyhook/ui/theme_notifier.dart'; | ||
import 'package:skyhook/ui/skyhook_colors.dart'; | ||
|
||
class SkyhookApp extends StatelessWidget { | ||
const SkyhookApp({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Consumer<ThemeNotifier>( | ||
builder: (context, themeNotifier, _) => MaterialApp( | ||
title: 'skyhook', | ||
debugShowCheckedModeBanner: false, | ||
theme: themeNotifier.getTheme(), | ||
home: SkyhookHomePage(title: 'skyhook', themeNotifier: themeNotifier,), | ||
)); | ||
return MaterialApp( | ||
title: 'SDPilates', | ||
debugShowCheckedModeBanner: false, | ||
theme: ThemeData( | ||
colorScheme: ColorScheme.fromSeed( | ||
seedColor: SkyhookColors.primaryColor(), | ||
brightness: Brightness.dark, | ||
), | ||
useMaterial3: true, | ||
), | ||
home: const SkyhookHomePage(title: 'skyhook'), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.