fading_widget_package 0.0.2 copy "fading_widget_package: ^0.0.2" to clipboard
fading_widget_package: ^0.0.2 copied to clipboard

A package to make easy fading a widget

This package is uses to make a fade animation to your widget easily.

Usage : #

To use this plugin, add fading_widget_package as a dependency in your pubspec.yaml file.

Example #

import 'package:flutter/material.dart';
import 'package:test_widgets/fading_animation.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Fading Animation Example',
      home: Scaffold(
        body: Center(
          child: FadingAnimation(
            duration: 3,
            child: Icon(
              Icons.favorite,
              size: 100,
              color: Colors.red,
            ),
          ),
        ),
      ),
    );
  }
}

Parameters #

  • duration : this parameter takes a integer number of seconds that widget take to show the default is 1 second.
  • child : takes an Widget type that contains your widget.

Screenshot #

13
likes
100
pub points
0%
popularity

Publisher

unverified uploader

A package to make easy fading a widget

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on fading_widget_package