animated_icon_button_flutter

Last updated:

0 purchases

animated_icon_button_flutter Image
animated_icon_button_flutter Images
Add to Cart

Description:

animated icon button flutter

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
copied to clipboard
Import the package like this:
import 'package:animated_icon_button_flutter/animated_icon_button_flutter.dart';
copied to clipboard
Usage #
create an AnimatedIconButton widget, and pass the required params:

AnimatedIconButton(
text: 'Favorite',
iconData: Icons.star,
)
copied to clipboard
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;

copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.