toggle_icon

Creator: coderz1093

Last updated:

0 purchases

toggle_icon Image
toggle_icon Images

Languages

Categories

Add to Cart

Description:

toggle icon

toggle_icon is a flutter package which provides us with the functionality to simply implement the toggle icons within a flutter project
Getting started #
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
...
toggle_icon: ^0.0.1
copied to clipboard
Import it:
import 'package:toggle_icon/toggle_icon.dart';
copied to clipboard
Usage #
Basic toggle Icon
ToggleIcon(
trueIcon:Icon(Icons.like),
falseIcon:Icon(Icons.like_outlined),
trueFunc:(){
print("Liked the post");
},
falseFunc:(){
print("Unliked the post");
}
)
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.