flutter_fader 1.0.0+1 copy "flutter_fader: ^1.0.0+1" to clipboard
flutter_fader: ^1.0.0+1 copied to clipboard

outdated

A flutter widget that allows you to fade a child widget in and out. When faded out the child widget is removed from the tree (it can't be interacted with

flutter_fader #

A widget for Flutter that allows you to fade in and out child widgets.
When a widget is faded out it is no longer in the view tree. Meaning that it can't be used or interacted with. Handy for hiding buttons

[Example of fader with buttons] [Example of fader with scroll]

Getting started #

In your Flutter project, add this package to your dependencies

dependencies:
  ...
  flutter_fader: ^1.0.0

Usage example #

Examples that show complete usage, and can also be ran on your device, go to the examples directory

Import the fader package

import 'package:flutter_test/flutter_test.dart';

Create a fader controller

FaderController faderController = new FaderController();

Create a fader widget, and pass it the fader controller

Fader(
  controller: faderController,
  duration: const Duration(milliseconds: 50),
  child: Text("Hello, world!"),
)

Now you can fade the child widget in and out at will

faderController.fadeOut();
faderController.fadeIn();
9
likes
0
points
34
downloads

Publisher

verified publishertylernorbury.com

Weekly Downloads

A flutter widget that allows you to fade a child widget in and out. When faded out the child widget is removed from the tree (it can't be interacted with

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_fader