패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.2.1

pwa

프로그레시브 웹 앱 라이브러리

30일 다운로드
97
좋아요
23
Pub 점수
20

패키지 설치

flutter pub add pwa

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

pwa 패키지는 개발자가 쉽게 프로그레시브 웹 앱(PWA)을 구축할 수 있도록 설계된 플러터 라이브러리입니다. 오프라인 지원, 푸시 알림, 설치 가능성을 포함한 웹 앱 기능을 향상시키기 위한 도구와 유틸리티를 제공합니다. 이 패키지를 통합함으로써 개발자는 현대적인 웹 표준을 활용해 웹을 통해 앱과 유사한 경험을 제공할 수 있습니다. 네이티브 앱 배포 없이 다양한 디바이스 사용자에게 도달하고자 하는 프로젝트에 특히 유용합니다. 이 라이브러리는 플러터 웹 프로젝트에 원활하게 통합될 수 있습니다.

사용 사례

  • 설치 가능한 웹 애플리케이션 빌드
  • 오프라인 기능 활성화
  • 푸시 알림 구현
  • 앱처럼 웹 경험 만들기
  • 웹 성능 향상

주요 기능

  • 서비스 워커를 통한 오프라인 지원
  • 푸시 알림 통합
  • 웹 앱 매니페스트 생성
  • 데스크톱 및 모바일에서의 설치 가능성
  • 무결점 플러터 웹 통합

적합한 대상

  • 웹 중심의 플러터 개발자
  • 광범위한 장치 호환성을 목표로 하는 프로젝트
  • 네이티브 코드 없이 PWA 기능을 원하는 개발자
  • 오프라인 액세스가 필요한 앱
  • 크로스 플랫폼 웹 애플리케이션 개발

고려 사항

  • 웹 배포 환경이 필요합니다
  • 네이티브 앱과 비교해 플랫폼 고유 기능이 제한됨
  • 고급 PWA 동작을 위해 추가 구성이 필요할 수 있습니다
  • 웹 전용 또는 웹 중심 애플리케이션에 가장 적합
  • 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.