circular_progress_button 0.0.3 copy "circular_progress_button: ^0.0.3" to clipboard
circular_progress_button: ^0.0.3 copied to clipboard

A Flutter package providing a customizable circular progress button that fills in three steps.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Circular Progress Button Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Circular Progress Button Demo'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [

            const SizedBox(height: 32),

            // Custom theme
            CircularProgressButton(
              theme: ProgressButtonTheme(
                progressColor: Colors.redAccent,
                backgroundColor: Colors.redAccent.withOpacity(0.3),
                strokeWidth: 10,
                size: 80,
                iconSize: 50,
                icon: Icons.navigate_next,
              ),
              onTap: () => print('Custom button tapped!'),
              onComplete: () => print('Completed!'),
              animationDuration: const Duration(milliseconds: 1000),
              totalSteps: 5,
              currentStep: 0,
            ),
          ],
        ),
      ),
    );
  }
}
3
likes
0
points
52
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package providing a customizable circular progress button that fills in three steps.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on circular_progress_button