पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.2.1

pwa

प्रोग्रेसिव वेब ऐप लाइब्रेरी

30-दिन डाउनलोड
97
लाइक
23
Pub अंक
20

पैकेज इंस्टॉल करें

flutter pub add pwa

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

pwa पैकेज एक फ्लटर लाइब्रेरी है जिसका उपयोग डेवलपर्स द्वारा आसानी से प्रगतिशील वेब ऐप (PWAs) बनाने के लिए किया जाता है। यह ऑफलाइन समर्थन, पुश नोटिफिकेशन और स्थापनीयता जैसे वेब ऐप क्षमताओं को बढ़ाने के लिए उपकरण और उपयोगिताएं प्रदान करता है। इस पैकेज को एकीकृत करके, डेवलपर्स मॉडर्न वेब मानकों का उपयोग करके वेब के माध्यम से ऐप-जैसा अनुभव प्रदान कर सकते हैं। यह उन परियोजनाओं के लिए विशेष रूप से उपयोगी है जो नेटिव ऐप वितरण के बिना उपकरणों के माध्यम से उपयोगकर्ताओं तक पहुंचना चाहते हैं। लाइब्रेरी फ्लटर वेब परियोजनाओं में बिना किसी बाधा के एकीकरण के लिए समर्थन करती है।

उपयोग

  • स्थापनीय वेब एप्लिकेशन बनाना
  • ऑफलाइन कार्यक्षमता सक्षम करें
  • पुश नोटिफिकेशन का कार्यान्वयन
  • एप्लिकेशन-जैसे वेब अनुभव बनाना
  • वेब प्रदर्शन में सुधार करना

मुख्य विशेषताएँ

  • सर्विस वर्कर के माध्यम से ऑफलाइन समर्थन
  • पुश नोटिफिकेशन इंटीग्रेशन
  • वेब ऐप मैनिफेस्ट जनरेशन
  • डेस्कटॉप और मोबाइल पर स्थापनीयता
  • निर्विघ्न फ्लटर वेब एंटीग्रेशन

इनके लिए उपयुक्त

  • वेब-फोकस्ड फ्लटर डेवलपर्स
  • व्यापक उपकरण संगतता के लक्ष्य वाले प्रोजेक्ट
  • मूल कोड के बिना 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 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।