progress_loading_button 2.0.2 copy "progress_loading_button: ^2.0.2" to clipboard
progress_loading_button: ^2.0.2 copied to clipboard

A Material Flutter Button that supports variety of button styles. It is designed to be easy to use and customizable.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        visualDensity: VisualDensity.adaptivePlatformDensity,
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          centerTitle: true,
          title: Text('Progress Loading Button Example'),
        ),
        body: Center(
          child: LoadingButton(
            defaultWidget: const Text('Click Me'),
            width: 196,
            height: 60,
            onPressed: () async {
              await Future.delayed(
                const Duration(milliseconds: 3000),
                () {
                  print('Button Pressed');
                },
              );
            },
          ),
        ),
      ),
    );
  }
}
17
likes
120
pub points
84%
popularity

Publisher

verified publishergairicksaha.com

A Material Flutter Button that supports variety of button styles. It is designed to be easy to use and customizable.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on progress_loading_button