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

rounded_loading_button कवर
पैकेज विवरणv2.1.0

rounded_loading_button

Flutter के लिए एक सरल एनिमेटेड लोडिंग बटन विजेट का कार्यान्वयन

30-दिन डाउनलोड
876
लाइक
539
Pub अंक
60

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

flutter pub add rounded_loading_button

पैकेज अवलोकन

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

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

उपयोग

  • फॉर्म सबमिशन
  • लॉगिन या पंजीकरण प्रवाह
  • API कॉल ट्रिगर
  • उपयोगकर्ता क्रियाकलाप पुष्टि
  • लोडिंग स्थिति प्रतिक्रिया

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

  • एनिमेटेड लोडिंग ट्रांजीशन
  • निर्धारित रंग और आकार
  • सर्कुलर प्रगति इंडिकेटर
  • सरल API एकीकरण
  • चिकनी एनीमेशन

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

  • शुरुआती Flutter विकासकर्ता
  • UI-भारी एप्लिकेशन
  • इंटरैक्टिव फॉर्म
  • मोबाइल ऐप इंटरफेस
  • त्वरित प्रोटोटाइपिंग

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

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

मूल README

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

rounded_loading_button

pub package build codecov style: effective dart License: MIT Awesome Flutter

RoundedLoadingButton is a Flutter package with a simple implementation of an animated loading button, complete with success and error animations.

Installation

Add this to your pubspec.yaml:

dependencies:
    rounded_loading_button: ^2.0.8

Usage

Import
import 'package:rounded_loading_button/rounded_loading_button.dart';
Simple Implementation
final RoundedLoadingButtonController _btnController = RoundedLoadingButtonController();

void _doSomething() async {
    Timer(Duration(seconds: 3), () {
        _btnController.success();
    });
}

RoundedLoadingButton(
    child: Text('Tap me!', style: TextStyle(color: Colors.white)),
    controller: _btnController,
    onPressed: _doSomething,
)

The Rounded Loading Button has many configurable properties, including:

  • duration - The duration of the button animation
  • loaderSize - The size of the CircularProgressIndicator
  • animateOnTap - Whether to trigger the loading animation on the tap event
  • resetAfterDuration - Reset the animation after specified duration, defaults to 15 seconds
  • errorColor - The color of the button when it is in the error state
  • successColor - The color of the button when it is in the success state
  • successIcon - The icon for the success state
  • failedIcon - The icon for the failed state

Contributions

All contributions are welcome!

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 1 आइटम

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

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