twinkle_button 0.0.3 copy "twinkle_button: ^0.0.3" to clipboard
twinkle_button: ^0.0.3 copied to clipboard

A button plug-in that can flash.

Twinkle Button #

A button plug-in that can flash.

Installation #

Add dependency to pubspec.yaml

dependencies:
  ...
  twinkle_button: ^lastest_version

Run in your terminal

flutter packages get

How to use #

import 'package:twinkle_button/twinkle_button.dart';
TwinkleButton(
  buttonTitle: Text(
    'Subscribe with Free Trial',
    style: TextStyle(
      color: Colors.white,
          fontWeight: FontWeight.w300,
          fontSize: 17.0,
        ),
    ),
    buttonColor: Color(0xff3dce89),
    onclickButtonFunction: () {
      print('hello');
    }
);

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.
18
likes
30
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

A button plug-in that can flash.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on twinkle_button

Packages that implement twinkle_button