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

A Timer Button.

Screenshots #


TIMERBUTTON.gif

Installation and Usage #


To install this package, you need to add mctimerbutton (0.0.2 or higher) to the dependencies list of the pubspec.yaml file as follow:

dependencies:
  flutter:
    sdk: flutter

  mctimerbutton: ^0.0.3

How to use #


Add the import to mctimerbutton/mctimerbutton.dart

create object #

new MCTimerButton(
     callback: this.buttonOnClickSendMessage,
     sendtitle: "sender message",
     time: 99,
   )

start time #

    shTimerButton.state.startTimer();

stop time #

    shTimerButton.state.stopTimer();

init params #

 MCTimerButton(
      {this.key,
      this.callback,
      this.sendtitle = "send message",
      this.time = 60,
      this.unit = "s"});
1
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A Timer Button.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on mctimerbutton