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

outdated

a helper to make animated linear and circular progress indicator

flutter_animated_progress_indicator #

example can be followed to to achieve same result

animateed

example #

add this to pubspec.yaml flutter_meedu: ^6.0.0 it is needed for the state management in the example

and this to pubspec.yaml flutter_animated_progress: ^1.0.0

import 'dart:io';

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

import 'package:flutter/services.dart';
import 'package:flutter_animated_progress/flutter_animated_progress.dart';
import 'package:flutter_meedu/flutter_meedu.dart';

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  Rx<double> value = Rx(0);
  @override
  void initState() {
    super.initState();
    changeValue();
  }

changeValue() async {
    await Future.delayed(const Duration(seconds: 1), () => value.value=0.5);
    await Future.delayed(const Duration(seconds: 1), () => value.value=1);
}

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: RxBuilder(
        (__) {
          return Column(
            children: [
              Expanded(
                child: Center(
                  child: AnimatedLinearProgressIndicator(
                    value: value.value,
                    animationDuration: const Duration(seconds: 2),
                    minHeight: 7,
                    valueColor: const AlwaysStoppedAnimation<Color>(Colors.red),
                    backgroundColor: Colors.grey[800],
                  ),
                ),
              ),
              Expanded(
                child: Center(
                  child: AnimatedCircularProgressIndicator(
                    value: value.value,
                    animationDuration: const Duration(seconds: 2),
                    strokeWidth: 7,
                    valueColor: const AlwaysStoppedAnimation<Color>(Colors.red),
                    backgroundColor: Colors.grey[800],
                  ),
                ),
              ),
            ],
          );
        }
        ),
      ),
    );
  }
}

3
likes
0
pub points
66%
popularity

Publisher

verified publisherzcreations.info

a helper to make animated linear and circular progress indicator

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_animated_progress