Add offline mode to a Flutter Web App - Service Workers/Pwas

2,794

Solution 1

Something to start you off.

Can we use Flutter for PWA (Progressive Web App) ?

Google I/O 2019 announced https://flutter.dev/web

Flutter on Web is still in preview, but here's a get started page:

Solution 2

since early 2020, Flutter Web support service worker.

here's the feature on GitHub for your reference.

https://github.com/flutter/flutter/pull/48344

Share:
2,794
Gabriele Cinà
Author by

Gabriele Cinà

Self starter and passionate second year Computer Science student with experience in programming and mathematics outside university courses. Ability to learn other coding languages and frameworks as need. Aspiring to apply my knowledge, gained from both the coursework and personal projects, to real-world challenges by completing challenging technical projects.

Updated on December 13, 2022

Comments

  • Gabriele Cinà
    Gabriele Cinà over 1 year

    I need to transform a Flutter app into a PWA and I'm trying to understand if this is possible without rewriting the code in AngularDart.

    I did some research and I found out that first I need my Flutter App to become a Flutter Web App but nothing more.

    There is also a StackOverflow question that speaks about this but answers are not complete

    How to transform Flutter web app into a PWA?

    I found some PWA examples with AngularDart, JS, etc... but nothing about a Flutter PWA.

    *On the Flutter for Web homepage they mention PWAs but I didn't understand if it is already a feature or not.