value_animation_progress 1.0.0+2

Value Animation Progress #

This library helps explain the amount of user consumption from the value of the Internet package or any value that needs to be clarified by the amount of consumption by Circle Progress Animation

Getting Started #

Parameters #

NameTypeUsage
valuedoublevalue of progress
gradientCircularProgressColorOneColorGradient Color One in Progress
gradientCircularProgressColorTwoColorGradient Color Two in Progress
gradientCircularProgressColorThreeColorGradient Color Three in Progress
durationDurationDuration time to complete animations
textSizedoubleText Size for display values
textColorColorText color for display values
cardHeightdoubleText container Height
cardWidthdoubleText container Width
progressStrokeWidthdoubleProgress Width
progressRadiusdoubleProgress Radius
textBackGroundColorColorText container BackGround Color

Usage #

import
 import 'package:value_animation_progress/value_animation_progress.dart';
Example
class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

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

class _MyHomePageState extends State<MyHomePage> {
  /// range is from 1 to 100
  double value = 90.0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
        backgroundColor: Colors.blue,
      ),
      body: Center(
          child: ValueAnimationProgress(
        value: value,
        textSize: 30,
        duration: Duration(seconds: 3),
        textColor: Colors.white,
        cardHeight: 170,
        cardWidth: 170,
        progressRadius: 120,
        progressStrokeWidth: 20,
        textBackGroundColor: Colors.blue,
        gradientCircularProgressColorOne: Color.fromRGBO(58, 255, 51, 1),
        gradientCircularProgressColorTwo: Color.fromRGBO(255, 85, 51, 1),
        gradientCircularProgressColorThree: Color.fromRGBO(255, 85, 51, 1),
      )),
    );
  }
}
library
ValueAnimationProgress(
        value: value,
        textSize: 30,
        duration: Duration(seconds: 3),
        textColor: Colors.white,
        cardHeight: 170,
        cardWidth: 170,
        progressRadius: 120,
        progressStrokeWidth: 20,
        textBackGroundColor: Colors.blue,
        gradientCircularProgressColorOne: Color.fromRGBO(58, 255, 51, 1),
        gradientCircularProgressColorTwo: Color.fromRGBO(255, 85, 51, 1),
        gradientCircularProgressColorThree: Color.fromRGBO(255, 85, 51, 1),
      )

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  value_animation_progress: ^1.0.0+2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:value_animation_progress/main.dart';
import 'package:value_animation_progress/value_animation_progress .dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
33
Health:
Code health derived from static analysis. [more]
56
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
40
Overall:
Weighted score of the above. [more]
41
Learn more about scoring.

We analyzed this package on Jul 11, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.14
  • Flutter: 1.17.5

Analysis issues and suggestions

There is likely a bug in the analysis code or a dependency: Error scanning direct libraries.

NoSuchMethodError: The getter 'element' was called on null. Receiver: null Tried calling: element

#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5) #1 LibraryScanner._getLibraryElement (package:pana/src/library_scanner.dart:215:24)

There is likely a bug in the analysis code or a dependency: Error scanning transitive libraries.

NoSuchMethodError: The getter 'element' was called on null. Receiver: null Tried calling: element

#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5) #1 LibraryScanner._getLibraryElement (package:pana/src/library_scanner.dart:215:24)

Health issues and suggestions

Fix lib/main.dart. (-43.75 points)

Analysis of lib/main.dart failed with 2 errors:

line 2 col 8: Target of URI doesn't exist: 'package:value_animation_progress/value_animation_progress%20.dart'.

line 40 col 18: The method 'ValueAnimationProgress' isn't defined for the type '_MyHomePageState'.

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: Documenting value_animation_progress... stderr: Unhandled exception: NoSuchMethodError: The method 'toList' was called on null. Receiver: null Tried calling: toList() #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5) #1 FileSystemState.getFilesForPath (package:analyzer/src/dart/analysis/file_state.dart:953:51) #2 FileTracker.verifyApiSignature.

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and value_animation_progress.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
cupertino_icons ^0.1.2 0.1.3
flutter 0.0.0
gradient_progress ^0.1.0 0.1.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.2
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies
flutter_test