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

पैकेज विवरणv1.0.2+1

animated_progress_button

क्या आप अपने बटन को पेशेवर बनाने के लिए समाधान तलाश रहे हैं? इस पैकेज की मदद से आपको Pinterest से सभी एनीमेशन प्रेरणा मिल सकती है।

30-दिन डाउनलोड
9
लाइक
26
Pub अंक
30

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

flutter pub add animated_progress_button

पैकेज अवलोकन

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

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

उपयोग

  • दृश्य प्रतिक्रिया के साथ फॉर्म सबमिशन
  • मोबाइल ऐप्स में लोडिंग स्थितियाँ
  • इंटरैक्टिव कॉल-टू-एक्शन बटन
  • ई-कॉमर्स ऐप में उपयोगकर्ता अनुभव को बढ़ाना
  • आकर्षक ऑनबोर्डिंग प्रवाह बनाना

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

  • Pinterest-आधारित एनीमेशन डिज़ाइन
  • कस्टमाइज़ किए गए बटन स्थितियाँ
  • आराम/लोडिंग/सफलता के बीच चिकनी जंजीर
  • Flutter विजेट्स के साथ आसान एकीकरण
  • कस्टम रंगों और प्रतीकों का समर्थन

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

  • पॉलिश्ड यूआई तत्वों की तलाश करने वाले विकासकर्ता
  • स्मार्ट उपयोगकर्ता प्रतिक्रिया की आवश्यकता वाले ऐप्स
  • डिज़ाइन-केंद्रित Flutter परियोजनाएं
  • इंटरैक्टिव फॉर्म वाले मोबाइल एप्लिकेशन
  • आधुनिक, आकर्षक इंटरफेस के लिए लक्ष्य तय करने वाली टीमें

विचार योग्य बातें

  • सीमित प्लेटफॉर्म-विशिष्ट कस्टमाइजेशन
  • एक्सेसिबिलिटी फीचर्स के लिए कोई निर्मित समर्थन नहीं है
  • निम्न-स्तर के उपकरणों पर एनीमेशन प्रदर्शन पर प्रभाव डाल सकते हैं
  • अवस्था प्रबंधन के लिए हस्तचालित संभाल की आवश्यकता है
  • अत्यधिक जटिल इंटरैक्टिव वर्कफ़्लो के लिए उपयुक्त नहीं

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Animated Progress Button

Animated loading button to make you app button looks smoother. Take inspritation from Pinterest https://www.pinterest.com/pin/671177150707141229/

alt text

Usages

Create animatedButtonController for controlling the button.

import 'package:animated_progress_button/animated_progress_button.dart';

final AnimatedButtonController animatedButtonController = AnimatedButtonController();

Then customize the button like your own way Noted that you must call animatedButtonController.completed() after getting response from server in order to complete the button animation

AnimatedButton(
   controller: animatedButtonController,
   color: Colors.greenAccent,
   text: 'Log in',
   loadingText: 'Loading',
   loadedIcon: Icon(Icons.check, color: Colors.white),
   onPressed: () async {
       /// calling your API here and wait for the response.
       await Future.delayed(Duration(seconds: 5)); // simulated your API requesting time.
       animatedButtonController.completed(); // call when you get the response
       await Future.delayed(Duration(seconds: 2));
       animatedButtonController.reset(); // call to reset button animation
   },
),

श्रेणियाँ

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

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

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