Skip to content

Commit 45f92b0

Browse files
committed
📝 Update README.md. Deploy example.
1 parent 4916206 commit 45f92b0

File tree

9 files changed

+113
-21
lines changed

9 files changed

+113
-21
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
favicon.png,1696159356043,fcc7c4545d5b62ad01682589e6fdc7ea03d0a3b42069963c815c344b632eb5cf
2+
index.html,1697275702889,0ad5d77d94b8c47d97ebd20f1c8cb378cc9e8a6872d3f900bf085e54962eec55
3+
manifest.json,1696159356044,f81e4554dc7f05633a2c5597416813859de5ace688342db41b201d42790fb8a7
4+
flutter_service_worker.js,1697275703167,0034152117c359221705141c12bc45d74ea96d848f88ea785092657765f30ed0
5+
flutter.js,1697275701746,cc5bca0a2b8ec99223db7f9ab924b67cca075f0e4997f262749f06e34b5965ef
6+
version.json,1697275702038,5c5f300519c143038d5ef60e5284bc78a9c6cdb320b7e291dcef18c270e943a0
7+
assets/AssetManifest.bin,1697275702105,de9dcecef8a29c0e617ed689b0cf49a4f221a488b571c6b2c500a97662e77448
8+
assets/AssetManifest.json,1697275702105,cede667960375d7037aa471e7acdfc665c4fbb4db87dc78b9b5554b7765d875e
9+
assets/FontManifest.json,1697275702105,2a26cf55926df210ccb9d713372cb114e0a12bf97104f6833e382566e2e7b16e
10+
assets/packages/storybook_flutter/assets/README.md,1691071144527,99c34916089fabfa9698edff60886be0dad94c496e85d713d886fd053185c537
11+
assets/fonts/MaterialIcons-Regular.otf,1697275702885,3239b53e7fdd096b8977486f0e07f5fff32614a51896e437be5930a32378cf1d
12+
assets/shaders/ink_sparkle.frag,1697275702214,7e2c4d11b7e2f4b97e4af6c3d7a3618158b451971f430b4befae8ea6aa756131
13+
canvaskit/skwasm.worker.js,1695724672000,0ca1b6ab0d9c4adb1257bd8d1a3fc8d8f74606ebed50c0b495ea2ec7be66c575
14+
icons/Icon-192.png,1696159356043,d2e0131bb7851eb9d98f7885edb5ae4b4d6b7a6c7addf8a25b9b712b39274c0f
15+
icons/Icon-512.png,1696159356043,7a31ce91e554f1941158ca46f31c7f3f2b7c8c129229ea74a8fae1affe335033
16+
icons/Icon-maskable-192.png,1696159356044,dd96c123fdf6817cdf7e63d9693bcc246bac2e3782a41a6952fa41c0617c5573
17+
icons/Icon-maskable-512.png,1696159356044,e7983524dc70254adc61764657d7e03d19284de8da586b5818d737bc08c6d14e
18+
canvaskit/canvaskit.js,1695724502000,48281a0edd1891ab4b1c4cab9af85b34e69c23332e4fee5d94d1670b21432286
19+
canvaskit/chromium/canvaskit.js,1695724576000,d6f1612c8f86a7df52bbac89bf5c1d061f10932d43722a9c86ac6ec4e5c34efc
20+
canvaskit/skwasm.js,1695724672000,3609cbf97e8dae9e611af3f06af41ea8a0bb7e6e7b5e97e36514859d704eb737
21+
assets/NOTICES,1697275702105,dc22b20357dcc125388ee45664c3b3c54547a99b1006b75818f057734180adbc
22+
main.dart.js,1697275578015,22a2ce4636773ef246b3fef0c483388e44587a95421b747e034c8fdb9af4aeec
23+
canvaskit/skwasm.wasm,1695724672000,9261adf59c2b51a0e372c03850ce1ae6aa2dc0cfa4a5cd57d463af8e6f625d23
24+
canvaskit/chromium/canvaskit.wasm,1695724562000,097efd454f8212ec194b89e7e9ae0522dab255f659ddfa95884b6ddb48cfc9de
25+
canvaskit/canvaskit.wasm,1695724488000,57f4af9df17f3d00a766abb17a439e0454ac6c5e05c355452f03e23f2ffcfa60

.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "hyper-effects-demo"
4+
}
5+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy to Firebase Hosting on merge
2+
'on':
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build_and_deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Install Flutter
12+
uses: subosito/flutter-action@v2
13+
with:
14+
channel: stable
15+
cache: true
16+
- name: Flutter pub get
17+
run: flutter pub get
18+
- name: Build Example
19+
run: |
20+
cd example
21+
flutter build web --release --dart-define=FLUTTER_WEB_USE_SKIA=true
22+
- uses: FirebaseExtended/action-hosting-deploy@v0
23+
with:
24+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
25+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_HYPER_EFFECTS_DEMO }}'
26+
channelId: live
27+
projectId: hyper-effects-demo
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy to Firebase Hosting on PR
2+
'on': pull_request
3+
jobs:
4+
build_and_preview:
5+
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- name: Install Flutter
10+
uses: subosito/flutter-action@v2
11+
with:
12+
channel: stable
13+
cache: true
14+
- name: Flutter pub get
15+
run: flutter pub get
16+
- name: Build Example
17+
run: |
18+
cd example
19+
flutter build web --release --dart-define=FLUTTER_WEB_USE_SKIA=true
20+
- uses: FirebaseExtended/action-hosting-deploy@v0
21+
with:
22+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
23+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_HYPER_EFFECTS_DEMO }}'
24+
projectId: hyper-effects-demo

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
inspired from SwiftUI's syntax to create beautiful effects in Flutter. With just a few lines of code after your
99
widget, you can add any number of effects and transitions with ease.
1010

11+
Demo: [hyper-effects-demo.web.app](https://hyper-effects-demo.web.app/)
12+
1113
## Features
1214

1315
* 📏 **Compact Syntax:** Write a single line of code for a whole suite of complex effects.
@@ -353,6 +355,8 @@ Like the scroll transition, be careful when using `value` and `valueOffset` as i
353355
pointer transition internally uses the `value` property to internally lerp between values. This means that if you use
354356
other properties and expect them to transition perfectly, you may get unexpected results sometimes.
355357

358+
### Demo: [hyper-effects-demo.web.app](https://hyper-effects-demo.web.app/)
359+
356360
## Contributing
357361

358362
See [CONTRIBUTING.md](https://github.com/BirjuVachhani/adaptive_theme/blob/main/CONTRIBUTING.md) for details.

example/lib/main.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import 'package:example/stories/color_filter_scroll_transition.dart';
2-
import 'package:example/stories/windows_settings_transition.dart';
3-
import 'package:example/stories/scroll_phase_transition.dart';
4-
import 'package:example/stories/scroll_wheel_transition.dart';
1+
import 'package:hyper_effects_demo/stories/color_filter_scroll_transition.dart';
2+
import 'package:hyper_effects_demo/stories/windows_settings_transition.dart';
3+
import 'package:hyper_effects_demo/stories/scroll_phase_transition.dart';
4+
import 'package:hyper_effects_demo/stories/scroll_wheel_transition.dart';
55
import 'package:flutter/material.dart';
66
import 'package:storybook_flutter/storybook_flutter.dart';
77

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: example
2-
description: A new Flutter project.
1+
name: hyper_effects_demo
2+
description: A demo that showcases the hyper_effects package.
33
publish_to: 'none'
44

55
version: 1.0.0+1

example/web/index.html

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="us">
33
<head>
4-
<!--
5-
If you are serving your web app in a path other than the root, change the
6-
href value below to reflect the base path you are serving from.
7-
8-
The path provided below has to start and end with a slash "/" in order for
9-
it to work correctly.
10-
11-
For more details:
12-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
13-
14-
This is a placeholder for base href that will be replaced by the value of
15-
the `--base-href` argument provided to `flutter build`.
16-
-->
174
<base href="$FLUTTER_BASE_HREF">
185

196
<meta charset="UTF-8">
207
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
21-
<meta name="description" content="A new Flutter project.">
8+
9+
<!-- Primary Meta Tags -->
10+
<title>Hyper Effects Demo</title>
11+
<meta name="title" content="Hyper Effects Demo"/>
12+
<meta name="description" content="A demo that showcases the hyper_effects package."/>
2213

2314
<!-- iOS meta tags & icons -->
2415
<meta name="apple-mobile-web-app-capable" content="yes">

firebase.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "example/build/web",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
]
15+
}
16+
}

0 commit comments

Comments
 (0)