FLUTTER ECOSYSTEM

ThomasEcalle/delayed_display

एक विजेट जो आपको एक देरी के बाद बच्चे को प्रदर्शित करने की अनुमति देता है और सुंदर फेडिंग और स्लाइडिंग एनीमेशन के साथ।

delayed_display प्रोजेक्ट कवर
Stars
30
Forks
7
अंतिम पुश (UTC)
5 जुल॰ 2021
प्रोजेक्ट स्थिति
सक्रिय
Ecalle Thomas GitHub avatar
GITHUB User

Ecalle Thomas ↗

भाषाएँDartHTMLSwiftKotlinObjective-C

तकनीकी विषय

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम
  • flutter{"sdk":"flutter"}
  • flutter_testडेवलपमेंट{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

delayed_display

A widget that enables you to display a child after a delay and with beautiful fading and sliding animation.

examples

https://raw.githubusercontent.com/ThomasEcalle/delayed_display/master/documentation/horizontal.gif https://raw.githubusercontent.com/ThomasEcalle/delayed_display/master/documentation/vertical.gif

How does it works

All you have to do is to use the widget DelayedDisplay like this for example :

DelayedDisplay(
  delay: Duration(seconds: 1),
  child: Text(
    "Hello",
    style: TextStyle(
      fontWeight: FontWeight.bold,
      fontSize: 35.0,
      color: Colors.white,
    ),
  ),
),

And ... That's all ! It will automatically handle fading and sliding animation and will make the Text appear after 1 second delay.

Let's customize it !

Here are the accepted parameters :

Name Type Usage Required Default Value
child Widget The Widget that needs to appear yes null
delay Duration The duration before showing the widget (and animating it) false null
fadingDuration Duration The duration of the fading animation false const Duration(milliseconds: 800)
slidingCurve Curve The curve of the sliding animation false Curves.decelerate
slidingBeginOffset Offset The offset from where the sliding animation will start false const Offset(0.0, 0.35)