timer_button_fork 3.0.1 copy "timer_button_fork: ^3.0.1" to clipboard
timer_button_fork: ^3.0.1 copied to clipboard

outdated

A new Flutter package would help you to create timer button which will be enabled after specified time.

Timer Button #

License: MIT

This Package will enable a new Flutter package for the timer button after a specified time.

timer_button

A Button that gets triggered will enable after a specified time.

Let's get started #

  1. Go to pubspec.yaml
  2. add a ns_utils and replace [version] with the latest version:
dependencies:
  flutter:
    sdk: flutter
  timer_button: ^[version]
  1. click the packages get button or flutter pub get

Import the package #

import 'package:timer_button/timer_button_fork.dart';

Usage #

Set ButtonType for Button. There are 3 Type of button :

  • ElevatedButton buttonType: ButtonType.ElevatedButton
  • TextButton buttonType: ButtonType.TextButton
  • OutlinedButton buttonType: ButtonType.OutlinedButton

Set text/label label: "Try Again"

Set timeout in seconds timeOutInSeconds: 20

Set color color: Colors.deepPurple

Set disabled color disabledColor: Colors.red

Example #

                new TimerButton(
                  label: "Send OTP Again",
                  timeOutInSeconds: 20,
                  onPressed: () {},
                  disabledColor: Colors.red,
                  color: Colors.deepPurple,
                  disabledTextStyle: new TextStyle(fontSize: 20.0),
                  activeTextStyle: new TextStyle(fontSize: 20.0, color: Colors.white),
                )

For issues and source code

Contributing #

There are a couple of ways in which you can contribute.

  • Propose any feature, enhancement
  • Report a bug
  • Fix a bug
  • Participate in a discussion and help in decision making
  • Write and improve some documentation. Documentation is supercritical, and its importance cannot be overstated!
  • Send in a Pull Request :-)
6
likes
0
points
45
downloads

Publisher

verified publisherlivnium.com

Weekly Downloads

A new Flutter package would help you to create timer button which will be enabled after specified time.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on timer_button_fork