v1.1.2delayed_widget
一個簡單易用的 Flutter 套件,讓小部件在建立後立即以流暢的方式顯示出來。
32喜歡 908近 30 天下載140Pub 分數
AndroidiOSWebmacOSWindowsLinux
samuelhk0595/delayed_widget open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
A simple and easy to use flutter package, to make widgets show up in a smooth way as soon as it is created.
dependencies:
delayed_widget: ^1.1.1
Scaffold(
appBar: AppBar(
title: Text('DelayedWidget Example'),
),
body: Center(
child: DelayedWidget(
delayDuration: Duration(milliseconds: 200),// Not required
animationDuration: Duration(seconds: 1),// Not required
animation: DelayedAnimations.SLIDE_FROM_BOTTOM,// Not required
child: Container(
width: 200,
height: 200,
color: Colors.red,
))),
)
enable: Enable/Disable animation
delayDuration: Set the delay time before start animation
animationDuration: Set the duration of animation
animation: Set the animation type
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗