パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.2.1

pwa

プログレッシブ・ウェブ・アプリケーション・ライブラリ

30日間ダウンロード
97
いいね数
23
Pub ポイント
20

パッケージをインストール

flutter pub add pwa

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

pwa パッケージは、開発者が簡単にプログレッシブウェブアプリ(PWA)を構築できるように設計されたFlutterライブラリです。オフライン対応、プッシュ通知、インストール可能機能などのウェブアプリの機能を強化するツールやユーティリティを提供します。このパッケージを統合することで、開発者はモダンなウェブ標準を利用して、ウェブ上でアプリに似た体験を提供できます。ネイティブアプリの配布なしにさまざまなデバイスのユーザーに届けたいプロジェクトには特に役立ちます。このライブラリはFlutterウェブプロジェクトへのシームレスな統合をサポートしています。

用途

  • インストール可能なWebアプリケーションの構築
  • オフライン機能を有効にする
  • プッシュ通知の実装
  • アプリのようなウェブ体験の作成
  • ウェブパフォーマンスの向上

主な機能

  • サービスワーカーによるオフラインサポート
  • プッシュ通知の統合
  • Webアプリマニフェストの生成
  • デスクトップおよびモバイルでのインストール可能性
  • スムーズなFlutterウェブ統合

適している対象

  • ウェブ中心のFlutter開発者
  • 広範なデバイス互換性をターゲットとしたプロジェクト
  • ネイティブコードなしでPWA機能を求める開発者
  • オフラインアクセスが必要なアプリ
  • クロスプラットフォームWebアプリケーション開発

注意事項

  • Webデプロイメント環境が必要です
  • ネイティブアプリと比較して、プラットフォーム固有の機能が限られている
  • 高度な PWA 機能を実現するための追加構成が必要になる場合があります
  • Web専用またはWebを最優先とするアプリケーションに最適
  • PWA機能のブラウザサポートに依存します

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Progressive Web App (PWA) for Dart

Progressive web apps (PWA) are a hybrid of regular web pages (or websites) and a mobile application. This new application model attempts to combine features offered by most modern browsers with the benefits of mobile experience.

Warning: the API is experimental, and subject to change.

Background

PWA is using ServiceWorkers:

Learn more about PWAs:

Articles about this packages:

Tutorial and Examples

Getting started

NOTE:

This library requires webdev installed locally. Install it using the command:

pub global activate webdev

  • Getting started: pwa_defaults

    • Shows you how to use the pwa package and what it does.
    • Enables offline asset caching for you web app out-of-the-box.
  • Additional offline urls: additional_offline_urls

    • Show you how to create the entry point for customization.
    • Gives you the ability to add additional URLs for the offline cache.

Customize caching

  • Custom routes: custom_routes
    • Familiarize yourself with caching and routes.
    • Customize cache behavior for different parts of your app.

Push notification

  • Push notification: push_notification
    • Check and/or request Push permission.
    • Trigger and handle push event, show notification.

Planned features

  • Typed Window <-> Worker communication, both Streams and request-reply patterns, something like:

    typedef Future<S> AsyncFunction<R, S>(R request);
    typedef S WireAdapter<R, S>(R input);
    
    abstract class MessageHub {
    
      AsyncFunction<R, S> getFunction<R, S>(String type,
          {WireAdapter<R, dynamic> encoder, WireAdapter<dynamic, S> decoder});
    
      void setHandler<R, S>(String type, AsyncFunction<R, S> handler,
          {WireAdapter<dynamic, R> decoder, WireAdapter<S, dynamic> encoder});
    
      Sink<T> getSink<T>(String type, {WireAdapter<T, dynamic> encoder});
    
      Stream<T> getStream<T>(String type, {WireAdapter<dynamic, T> decoder});
    }
    
  • Push Notification

    • notification for the client app
    • one-method registration and/or status request

カテゴリー

依存関係

依存関係一覧 5 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。