0 purchases
twinkle button
Twinkle Button #
A button plug-in that can flash.
Installation #
Add dependency to pubspec.yaml
dependencies:
...
twinkle_button: ^lastest_version
copied to clipboard
Run in your terminal
flutter packages get
copied to clipboard
How to use #
import 'package:twinkle_button/twinkle_button.dart';
copied to clipboard
TwinkleButton(
buttonTitle: Text(
'Subscribe with Free Trial',
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.w300,
fontSize: 17.0,
),
),
buttonColor: Color(0xff3dce89),
onclickButtonFunction: () {
print('hello');
}
);
copied to clipboard
Attribute #
Parameter
Default
Description
buttonTitle
null
Change this value if you what to put pagination in other placeThe text on the button, cannot be omitted.
buttonColor
null
Button background color, cannot be omitted.
buttonHeight
50.0
Height of button.
buttonWidth
200.0
Width of button.
durationTime
3
Button blink interval.(seconds)
twinkleTime
300
Blink time.(milliseconds)
highlightColor
Colors.white
Flash effect background color.
onclickButtonFunction
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.