Last updated:
0 purchases
insta like button
Insta Like Button #
Installing #
Depend on it #
Add this to your package's pubspec.yaml file:
dependencies:
insta_like_button: ^0.1.1
copied to clipboard
Install it #
You can install packages from the command line:
$ flutter pub get
...
copied to clipboard
Import it #
Now in your Dart code, you can use:
import 'package:insta_like_button/insta_like_button.dart';
copied to clipboard
Usage & Overview #
With required parameters. #
InstaLikeButton(
image: AssetImage("example/overview/img.jpg"),
onChanged: () {
// Do something...
},
),
copied to clipboard
With all parameters (Customized InstaLikeButton). #
InstaLikeButton(
image: NetworkImage("https://picsum.photos/200/300"),
onChanged: () {
// Do something...
},
icon: Icons.favorite_border,
iconSize: 80,
iconColor: Colors.red,
curve: Curves.fastLinearToSlowEaseIn,
height: 200,
width: MediaQuery.of(context).size.width - 20,
duration: const Duration(seconds: 1),
onImageError: (e, _) {
// Do something...
},
imageAlignment: Alignment.topLeft,
imageBoxfit: BoxFit.fill,
imageScale: 2.0,
imageColorFilter: ColorFilter.mode(
Colors.black.withOpacity(0.5),
BlendMode.dstATop,
),
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.