v2.0.0delayed_display
一個可讓您在延遲後顯示子元件,並具有美觀的淡入淡出與滑動動畫的組件。
489喜歡 1.2萬近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個可讓您在延遲後顯示子元件,並具有美觀的淡入淡出與滑動動畫的組件。
以下為英文專案原文快照,最新內容請造訪 GitHub。
A widget that enables you to display a child after a delay and with beautiful fading and sliding animation.


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.
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) |
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗