0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.