submit_button_group 0.0.2 copy "submit_button_group: ^0.0.2" to clipboard
submit_button_group: ^0.0.2 copied to clipboard

outdated

A flutter plugin to show button with inbuilt loading.Create a custom Widget to display a group of two buttons with an in-build loading action. In default Widget shows two buttons, the primary button a [...]

submit_button_group #

Awesome Flutter

A flutter plugin to show button with inbuilt loading.

Features #

Button type one Button type two
Button type three ![Loading sample](https://github.com/nikhith265/submit_button_group/blob/298c26b5a3fcfe936f16deef0e8712c2fdc1b635/attachments/gif/sample_gif.gif?raw=true)
Button type three

Handling the loading of buttons is an extra task for developers. Don't worry, now it's simple. Swipe down.

Getting started #

Add the latest submit_button_group as a dependency in your pubspec.yaml file.

Create a custom Widget to display a group of two buttons with an in-build loading action. In default Widget shows two buttons, the primary button and the secondary button. The primary button shows the nature of a submit button and the secondary button shows the nature of a close button. Both are customizable and perform as needed.

Usage #

Adding group of buttons #

Display both buttons.

 SubmitButtonsGroup groupButton =  SubmitButtonsGroup(  
            loading: _loading,
            onSubmit: () async {
              _loading.value = true;
               await _incrementCounter();
              _loading.value = false;
            },
          );

Adding a single button #

Show only a single button.

SubmitButtonsGroup button =  SubmitButtonsGroup(
            isExpand: true,
            loading: _loading,
            hideSecondaryButton = true;
            onSubmit: () async {
              _loading.value = true;
              await _incrementCounter();
              _loading.value = false;
            },
          );

Road map #

I am always open for suggestions and ideas for possible improvements or fixes.

Feel free to open a Pull Request if you would like to contribute to the project.

If you would like to have a new feature implemented, just write a new issue.

1
likes
0
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter plugin to show button with inbuilt loading.Create a custom Widget to display a group of two buttons with an in-build loading action. In default Widget shows two buttons, the primary button and the secondary button. The primary button shows the nature of a submit button and the secondary button shows the nature of a close button. Both are customizable and perform as needed.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on submit_button_group