flutter_colored_progress_indicators 1.0.1 copy "flutter_colored_progress_indicators: ^1.0.1" to clipboard
flutter_colored_progress_indicators: ^1.0.1 copied to clipboard

outdated

An alternate animated progress indicator widget for flutter's CircularProgressIndicator and LinearProgressIndicator with Google color accents.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:flutter_colored_progress_indicators/flutter_colored_progress_indicators.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: ColoredProgressDemo(),
    );
  }
}

class ColoredProgressDemo extends StatefulWidget {
  @override
  _ColoredProgressDemoState createState() => _ColoredProgressDemoState();
}

class _ColoredProgressDemoState extends State<ColoredProgressDemo> {
  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Text("Without animation"),
        SizedBox(height: 50.0),
        SizedBox(
          height: 100.0,
          width: 100.0,
          child: CircularProgressIndicator(strokeWidth: 8.0),
        ),
        SizedBox(height: 50.0),
        SizedBox(
          width: 400.0,
          child: LinearProgressIndicator(),
        ),
        SizedBox(height: 100.0),
        Text("With colorful accents"),
        SizedBox(height: 50.0),
        SizedBox(
          width: 100.0,
          height: 100.0,
          child: ColoredCircularProgressIndicator(strokeWidth: 8.0),
        ),
        SizedBox(height: 50.0),
        SizedBox(
          width: 400.0,
          child: ColoredLinearProgressIndicator(),
        ),
      ],
    );
  }
}
9
likes
0
pub points
67%
popularity

Publisher

unverified uploader

An alternate animated progress indicator widget for flutter's CircularProgressIndicator and LinearProgressIndicator with Google color accents.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_colored_progress_indicators