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

outdated

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');
                },
              );
            },
          ),
        ),
      ),
    );
  }
}
18
likes
0
pub points
82%
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

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on progress_loading_button