FLUTTER ECOSYSTEM

Cretezy/flutter_fadein

マウントされたときにウィジェットをフェードインする簡単なFlutterウィジェット

flutter_fadein のプロジェクト画像
Stars
9
Forks
5
最終プッシュ(UTC)
2025/03/16
プロジェクト状態
公開中
Cretezy GitHub avatar
GITHUB User

Cretezy ↗

Hi, I'm Cretezy, a software developer. I write open-source software, articles, and make YouTube videos.

@ServiceTitanCanada公式サイト ↗
言語DartObjective-CJava

技術トピック

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 1 件
  • flutter{"sdk":"flutter"}

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

Flutter Fade-In pub package

Simple Flutter widget to fade-in your widgets once they are mounted.

Supports Material & Cupertino widgets.

Required Dart >=2.12 (has null-safety support).

Pub - API Docs - GitHub

Install

Add this as a dependency in your pubspec.yaml:

dependencies:
  flutter_fadein: ^2.0.0

Usage

import 'package:flutter_fadein/flutter_fadein.dart';

FadeIn(
  child: Text("This will be faded-in!"),
  // Optional paramaters
  duration: Duration(milliseconds: 250),
  delay: Duration(milliseconds: 250)
  curve: Curves.easeIn,
)
With Controller

If you need more control over the animation timing, you can use FadeInController:

final controller = FadeInController();

// ...

FadeIn(
  child: Text("This will be faded-in with a controller"),
  controller: controller,
)

// ...

controller.fadeIn();
controller.fadeOut();

Using a controller with not automatically start. You can make it automatically start using FadeInController(autoStart: true). Note that the delay parameter does not work while using a controller, and will therefore raise an exception.