v2.0.0animated_text_lerp
संख्या या स्ट्रिंग पाठ के बीच एनीमेशन करने के लिए सरल विजेट। संख्या में वृद्धि/कमी एनीमेशन, मुद्रा मूल्य एनीमेशन या स्ट्रिंग सामग्री बदलने के एनीमेशन के लिए उपयोगी।
Flutter में एनीमेटेड टेक्स्ट के लिए पैकेज। मुद्रा मूल्य बढ़ने/घटने के एनीमेशन या टेक्स्ट कंटेंट के लर्प एनीमेशन के लिए उपयोगी।
{"sdk":"flutter"}{"sdk":"flutter"}^3.0.0यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Simple widgets to animate between number or string text. Useful for number increase/decrease animation, currency value animation or string content changing animation.
import 'package:animated_text_lerp/animated_text_lerp.dart';
The widget support lerping between number values. Just setState with the current value and the widget will start animating to it.
AnimatedNumberText(
value, // int or double
curve: Curves.easeIn,
duration: const Duration(seconds: 1),
style: const TextStyle(fontSize: 30),
formatter: (value) {
final formatted =
intl.NumberFormat.currency(locale: "en").format(value);
return formatted;
},
)
The widget support lerping between string values. Just setState with the current value and the widget will start animating to it. Each character will lerp to the new corresponding one respectively.
AnimatedStringText(
value, // string
curve: Curves.easeIn,
duration: const Duration(seconds: 1),
style: const TextStyle(fontSize: 30),
)