holdable_circular_button 0.0.4 copy "holdable_circular_button: ^0.0.4" to clipboard
holdable_circular_button: ^0.0.4 copied to clipboard

A customizable Flutter widget for a circular button with a progress indicator.

example/lib/main.dart

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

void main() {
  runApp(const MaterialApp(
    debugShowCheckedModeBanner: false,
    title: 'Holdable Circular Button app',
    home: HomeScreen(),
  ));
}

class HomeScreen extends StatefulWidget {
  const HomeScreen({Key? key}) : super(key: key);

  @override
  _HomeScreenState createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {
  bool isFinished = false;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        title: Text('Holdable Circular Button'),
        elevation: 0,
      ),
      body: SafeArea(
        child: Center(
          child: HoldableCircularButton(
            progressColor: Colors.green,
            buttonColor: Colors.red,
            onComplete: () {},
            icon: Icon(Icons.touch_app_outlined),
          ),
        ),
      ),
    );
  }
}
3
likes
160
points
40
downloads

Publisher

verified publishercodestationai.com

Weekly Downloads

A customizable Flutter widget for a circular button with a progress indicator.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on holdable_circular_button