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

A Flutter package to show an animated icon button.

A Flutter package for creating an animated icon button with customizable icon, text, and colors for selected and unselected states

Installation #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  flutter:
    sdk:
  animated_icon_button_flutter: any

Import the package like this:

  import 'package:animated_icon_button_flutter/animated_icon_button_flutter.dart';

Usage #

create an AnimatedIconButton widget, and pass the required params:


AnimatedIconButton(
            text: 'Favorite',
            iconData: Icons.star,
          )

Customization #

Customize the AnimatedIconButton widget with these parameters:

/// This color appears after clicking the button
/// Default is Color(0xFFFFD700).
final Color selectedColor;

/// This color appears After clicking again( the button appears disabled)
/// Default is Color(0xFF708090).
final Color unSelectedColor;

/// The color of text in enable state
/// Default is Color(0xFFFFD700).
final Color textSelectedColor;

/// The color of text in disable state
/// Default is Color(0xFF708090).
final Color textUnselectedColor;

/// The color of icon in enable state
/// Default is Color(0xFFFFD700).
final Color iconSelectedColor;

/// The color of icon in disable state
/// Default is Color(0xFF708090).
final Color iconUnselectedColor;

6
likes
140
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to show an animated icon button.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, google_fonts

More

Packages that depend on animated_icon_button_flutter