async_progress_button 2.0.3 copy "async_progress_button: ^2.0.3" to clipboard
async_progress_button: ^2.0.3 copied to clipboard

A Flutter package that provides an asynchronous button widget with customizable properties.you can do your asynchronous activites smoothly.

example/example.md

AsyncButton Example #

This is a basic example of how to use the AsyncButton widget from the async_progress_button package in your Flutter application.

Import the package #

First, you need to import the async_progress_button package in your Dart file:

import 'package:async_progress_button/async_progress_button.dart'; 

Use the AsyncButton widget #

Here’s a simple example of using the AsyncButton widget:

AsyncButton(
  text: 'Click Me',
  onPressed: () async {
    // Your async operation here
  },
)

You can customize the AsyncButton widget by specifying different parameters, such as color, icon, iconColor, iconSize, width, and height.

Full Example #

Here’s a full example of a Flutter

import 'package:flutter/material.dart';
import 'package:async_progress_button/async_progress_button.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('AsyncButton Example'),
        ),
        body: Center(
          child: AsyncButton(
            text: 'Click Me',
            onPressed: () async {
              // Your async operation here
            },
          ),
        ),
      ),
    );
  }
}

2
likes
150
points
37
downloads

Publisher

verified publisherfluttersinhala.com

Weekly Downloads

A Flutter package that provides an asynchronous button widget with customizable properties.you can do your asynchronous activites smoothly.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on async_progress_button