timer_widget 0.0.4 copy "timer_widget: ^0.0.4" to clipboard
timer_widget: ^0.0.4 copied to clipboard

Timer Widget Can be fully Customized can be used As a button Or widget. can check timer start end and Durations. can be handle outside of the widget by controller.

  • Fully Customized #

    • can be used as a widget OR Button #

Features #

  • Timer Widget can wrapped on any type of widget fully customized
  • can be used on any type of button
  • can make custom button
  • can used on any widget
  • can be manage by controller

Usage #

ScreenShot #


Example #

   
   TimerWidget(
                   timeOutInSeconds: 5,
                   onPressed: () {},
                   controller: timerController, //handle by this out side of the widget
                   buttonType: ButtonType.outline,
                   buttonStyle: ButtonStyle(
                                backgroundColor: MaterialStateProperty.all(
                                Colors.orangeAccent)),
                   builder: (context, seconds, isCounting) {
                     if(isRunning){
                       // show any widget when time count Down
                         return const CircularProgressIndicator();
                     }else{
                       // show before on press any widget
                         return const Icon(Icons.ads_click);
                     }
                   }),
   `_______________________________________________`
   // handle by controller from another widget OR by Function
   TimerWidgetController timerController = TimerWidgetController(); // Make Controlleer before widget building
   timerController.startTimer();
   timerController.stopTimer();
   timerController.isCounting;

Additional information #

Easy to customized can be wrapped on any type of widget or controlled by controller used as a button or any others type of widgets.

  • available for all platforms Need Any Other Packages or issues can contact
1
likes
130
points
31
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

Timer Widget Can be fully Customized can be used As a button Or widget. can check timer start end and Durations. can be handle outside of the widget by controller.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, provider

More

Packages that depend on timer_widget