A widget button that can sparkle.
Add dependency to pubspec.yaml
dependencies:
...
sparkler_button: ^lastest_version
Run in your terminal
flutter packages get
import 'package:sparkler_button/sparkler_button.dart';
SparklerButton(
buttonTitle: Text(
'Button that can Sparkle',
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.w300,
fontSize: 17.0,
),
),
buttonColor: Color(0xff3dce89),
onclickButtonFunction: () {
print('hello');
}
);
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. |