VeryGoodOpenSource / flutter_web_preloader

A brick that creates a smart web entrypoint for Flutter and preloads any type of asset before starting an app.
https://brickhub.dev/bricks/flutter_web_preloader/0.2.0
MIT License
77 stars 7 forks source link

refactor: stop using deprecated serviceWorkerVersion #29

Closed alestiago closed 2 months ago

alestiago commented 2 months ago

Status

READY

Description

Resolves #26

Video

https://github.com/user-attachments/assets/7d5dc55e-84d7-4521-9da2-6e391af6157d

Try it out

  1. Clone the repository and checkout to this branch.

  2. Get hook dependencies (from ./hooks/):

dart pub get
  1. Create a flutter web sample project (from .):
flutter create sample --platforms web
  1. Activate Mason:
dart pub global activate mason_cli
  1. Initialize Mason (from sample):
mason init
  1. Add local flutter_web_preloader (from sample):
mason add flutter_web_preloader --path ..
  1. Make flutter_web_preloader (from sample):
mason make flutter_web_preloader
  1. Run the application in chrome (from sample):
flutter run -d chrome

Type of Change