搜索插件、代码仓与 APP 分类

delayed_display 封面
插件详情v2.0.0

delayed_display

一个控件,可让您在延迟后显示子控件,并带有精美的淡入淡出和滑动动画。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1.2万
喜欢数
489
Pub 分数
160

安装插件

flutter pub add delayed_display

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

delayed_display 包提供了一个小部件,可延迟其子组件的显示,并带有平滑的淡入淡出和滑动动画。非常适合在 Flutter 应用中创建定时视觉效果,通过引入微妙的过渡来提升用户体验。该小部件易于集成,支持所有主要平台,包括移动设备、网页和桌面端。它支持自定义延迟时间以及动画曲线,适用于启动画面、引导流程或任何需要定时内容展示的场景。

适合场景

  • 引导页动画
  • 启动屏过渡
  • 定时UI元素揭示
  • 加载状态指示器
  • 动画欢迎消息

主要特点

  • 可自定义的延迟时长
  • 平滑的淡入淡出和滑动动画
  • 跨平台支持
  • 简单的 API 集成
  • 可配置的动画曲线
  • 支持空安全

适合对象

  • 寻求定时UI动画的开发者
  • 设计师提升应用入门体验
  • 需要细微视觉反馈的应用程序
  • 带有动画启动画面的项目
  • Flutter 初学者探索过渡效果

使用建议

  • 如果过度使用,可能会影响性能
  • 需要仔细把握时机以获得最佳用户体验
  • 仅限基本动画类型
  • 不适合复杂的交互序列
  • 动画行为在不同平台之间可能存在细微差异

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

delayed_display

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

examples

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)

所属分类

源码仓库

使用此插件的项目