arc_progress_bar_new 1.0.2 copy "arc_progress_bar_new: ^1.0.2" to clipboard
arc_progress_bar_new: ^1.0.2 copied to clipboard

outdated

Generally a Curved/arc Progress Bar package

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: ArcProgressBarApp(),
    );
  }
}

class ArcProgressBarApp extends StatefulWidget {
  const ArcProgressBarApp({super.key});

  @override
  State<ArcProgressBarApp> createState() => _ArcProgressBarAppState();
}

class _ArcProgressBarAppState extends State<ArcProgressBarApp> {
  double _progressPercentage = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Arc Progress Bar Demo"),
      ),
      body: SingleChildScrollView(
        child: Column(
          children: <Widget>[
            ArcProgressBar(
                percentage: _progressPercentage,
                arcThickness: 5,
                innerPadding: 16,
                animateFromLastPercent: true,
                handleSize: 10,
                backgroundColor: Colors.black12,
                foregroundColor: Colors.black),
            ArcProgressBar(
              percentage: _progressPercentage,
              arcThickness: 5,
              foregroundColor: Colors.blue,
              innerPadding: 64,
            ),
            ArcProgressBar(
              percentage: _progressPercentage,
              arcThickness: 15,
              innerPadding: 48,
              strokeCap: StrokeCap.round,
              handleSize: 50,
              handleWidget: Container(
                decoration: const BoxDecoration(color: Colors.red),
              ),
              foregroundColor: Colors.redAccent,
              backgroundColor: Colors.red.shade100,
            ),
            ArcProgressBar(
                percentage: _progressPercentage,
                bottomLeftWidget: const Text("Level 3"),
                bottomRightWidget: const Text("240/300"),
                bottomCenterWidget: const Text("RECRUIT"),
                centerWidget: Image.asset("assets/images/insignia.png",
                    height: 200, width: 200, fit: BoxFit.contain)),
            const Padding(
              padding: EdgeInsets.symmetric(vertical: 32),
              child: Divider(
                color: Colors.black38,
              ),
            ),
            Slider(
                value: _progressPercentage,
                min: 0,
                max: 100,
                onChanged: (val) {
                  setState(() {
                    _progressPercentage = val;
                  });
                }),
          ],
        ),
      ),
    );
  }
}
14
likes
0
points
3.88k
downloads

Publisher

unverified uploader

Weekly Downloads

Generally a Curved/arc Progress Bar package

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, vector_math

More

Packages that depend on arc_progress_bar_new