flutter_smart_button 0.1.0 copy "flutter_smart_button: ^0.1.0" to clipboard
flutter_smart_button: ^0.1.0 copied to clipboard

A customizable smart button widget for Flutter applications, designed to handle asynchronous operations with a loading indicator, and customizable styles.

Flutter Smart Button #

A customizable smart button widget for Flutter applications, designed to handle asynchronous operations with a loading indicator, and customizable styles.

Features #

  • Shows a loading indicator when performing asynchronous operations.
  • Customizable button styles (color, text style, borders, etc.).
  • Debounce capability to prevent multiple taps.
  • Easy to implement with a simple API.

Getting Started #

To use the flutter_smart_button package, add it to your Flutter project's dependencies.

Installation #

Add flutter_smart_button to your pubspec.yaml file:

dependencies:
  flutter_smart_button: ^0.1.0

Then, run flutter pub get to download the package.

Usage #

Import flutter_smart_button in your Dart file:

import 'package:flutter_smart_button/flutter_smart_button.dart';

Use SmartButton widget:

SmartButton(
  child: Text('Tap Me'),
  onPressed: () async {
    // Your asynchronous operation here
  },
  isLoading: _isLoading, // Control the loading state
)

Contributing #

Contributions are welcome! Please read the contributing guidelines before submitting pull requests.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

6
likes
0
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable smart button widget for Flutter applications, designed to handle asynchronous operations with a loading indicator, and customizable styles.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_spinkit

More

Packages that depend on flutter_smart_button