sparkler_button 0.0.1
sparkler_button: ^0.0.1 copied to clipboard
A widget button that can sparkle.
sparkler_button #
A widget button that can sparkle.
Getting Started #
Installation #
Add dependency to pubspec.yaml
dependencies:
...
sparkler_button: ^lastest_version
Run in your terminal
flutter packages get
How to use #
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');
}
);
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. |