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

flutter_numeric_text कवर
पैकेज विवरणv1.3.3

flutter_numeric_text

इस विजेट का उपयोग करके आप किसी भी टेक्स्ट को एनिमेट कर सकते हैं। विजेट का उपयोग करना आसान है और आप बिना किसी दिक्कत के Text(data) को NumericText(data) से बदल सकते हैं।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
945
लाइक
28
Pub अंक
160

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

flutter pub add flutter_numeric_text

पैकेज अवलोकन

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

flutter_numeric_text एक Flutter पैकेज है जो टेक्स्ट प्रदर्शन के लिए स्मूथ न्यूमेरिक एनिमेशन की अनुमति देता है। यह मानक Text विजेट को एनिमेटेड न्यूमेरिक ट्रांज़िशन से बदलता है, जो काउंटर, स्कोर या किसी भी मान के समय के साथ बदलने के लिए आदर्श है। विजेट को आसानी से एकीकृत किया जा सकता है—बस Text(data) को NumericText(data) से बदलें—और सभी प्रमुख प्लेटफॉर्म जैसे Android, iOS, Web, macOS, Windows और Linux का समर्थन करता है। इसके लिए न्यूनतम सेटअप के साथ एक निरंतर दृश्य अनुभव प्रदान करता है, जो धाराप्रवाह संख्या अपडेट की आवश्यकता वाले डायनामिक UI तत्वों के लिए आदर्श है।

उपयोग

  • एनिमेटेड काउंटर्स
  • स्कोर प्रदर्शन
  • डायनामिक डेटा विज़ुअलाइज़ेशन
  • वास्तविक समय संख्या अपडेट
  • इंटरैक्टिव डैशबोर्ड

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

  • स्मूथ न्यूमेरिक एनीमेशन
  • सरल API प्रतिस्थापन
  • क्रॉस-प्लेटफ़ॉर्म समर्थन
  • न्यूनतम कॉन्फ़िगरेशन
  • कस्टमाइज़ किया गया गति
  • स्वचालित अंक प्रबंधन

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

  • एनिमेटेड नंबर्स की जरूरत वाले डेवलपर्स
  • UI डिजाइनर डैशबोर्ड को बेहतर बना रहे हैं
  • वास्तविक समय में मीट्रिक्स वाले ऐप्स
  • गेमिफिकेशन विशेषताएं
  • सरल लेकिन चमकदार एनीमेशन

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

  • केवल संख्यात्मक मानों के लिए सबसे उपयुक्त
  • उच्च आवृत्ति अपडेट के साथ प्रदर्शन पर प्रभाव पड़ सकता है
  • पूर्णांक और दशमलव संख्याओं तक सीमित
  • गैर-संख्यात्मक पाठ के लिए नहीं बनाया गया है
  • बहुत तेज़ अपडेट के लिए सावधानीपूर्वक ट्यूनिंग की आवश्यकता होती है

मूल README

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

Text(data) → NumericText(data)

This widget allows you to animate any text. The animation is reminiscent of the text animation in SwiftUI's .numericText(value:). The widget is easy to use and allows you to seamlessly replace Text(data) with NumericText(data).

Features

  • Automatic text animation
  • Minimal configuration required to get started
  • Supports almost all parameters of the Text() widget
  • No external dependencies required

Usage

import 'package:flutter_numeric_text/flutter_numeric_text.dart';

class MyWidget extends StatelessWidget {
  const MyWidget({super.key});

  @override
  Widget build(BuildContext context) {
    // Simply add the widget, and when its value changes,
    // it will automatically trigger the animation.

    // To use the widget, you only need to provide
    // a data value, other fields are optional.

    NumericText(
      "12345 or text",
      duration: const Duration(milliseconds: 300),
      style: const TextStyle(fontSize: 24, color: Colors.black),
      textAlign: TextAlign.center,
      textDirection: TextDirection.ltr,
      locale: const Locale("en", "US"),
      softWrap: true,
      overflow: TextOverflow.ellipsis,
      maxLines: 1,
      semanticsLabel: "Numeric value",
    );
  }
}
With GoogleFonts
...
    NumericText(
      "12345 or text",
      duration: const Duration(milliseconds: 300),
      style: GoogleFonts.<your_font>(
        fontSize: 24,
        color: Colors.black,
        // Just a friendly reminder to add the [textStyle] field.
        // It'll make sure everything calculates correctly.
        textStyle: Theme.of(context).textTheme.bodyMedium,
      ),
    );
...

Installation

To use this package, add it to your pubspec.yaml file:

dependencies:
  flutter_numeric_text: ^1.0.0 # Replace with the latest version

Contributing

Contributions are welcome! If you have suggestions for improvements or find bugs, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

श्रेणियाँ

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

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

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