0 purchases
sparkler button
sparkler_button #
A widget button that can sparkle.
Getting Started #
Installation #
Add dependency to pubspec.yaml
dependencies:
...
sparkler_button: ^lastest_version
copied to clipboard
Run in your terminal
flutter packages get
copied to clipboard
How to use #
import 'package:sparkler_button/sparkler_button.dart';
copied to clipboard
SparklerButton(
buttonTitle: Text(
'Button that can Sparkle',
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.w300,
fontSize: 17.0,
),
),
buttonColor: Color(0xff3dce89),
onclickButtonFunction: () {
print('hello');
}
);
copied to clipboard
Attribute #
Parameter
Default
Description
title
null
Change this value if you what to put pagination in other placeThe text on the button, cannot be omitted.
bgColor
null
Button background color, cannot be omitted.
height
50.0
Height of button.
width
200.0
Width of button.
interval
3
Button blink interval.(seconds)
time
300
Blink time.(milliseconds)
highlightColor
Colors.white
Flash effect background color.
onclick
null
Events executed by clicking the button, cannot be omitted.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.