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 ↗