add_cart_parabola 0.0.6

flutter_mall_cart #

指定起点、终点(左右均可)和widget A,将A以抛物线的形式从起点运动到终点(在同一水平线上的话,效果啥样我也不清楚了)。

the function is you can give a start and end point(on left or right its compatible,but not in a horzontal line),and provide a widget.ParabolaAnimateWidget will animate the widget that you provide, from start to end point follow a parabola path.



demo is here:



this a simple tool :), you can realize through this param's name; and clone this demo see more detail.

// rootkey传根部局的可以, 主要用于定位。 // rootkey is your rootWidget's key,it's help for location. // callback这个是动画的回调,会带会当前动画的status // callback is animation's status callback,

ParabolaAnimateWidget(rootKey,startOffset,endOffset,Icon(Icons.cancel,color: Colors.greenAccent,),callback,);


如果觉得有啥功能需要加上,可以告诉我,有时间我会加上去(具有通用性的) ,你也可以自己直接修改。

if you have some good thoughts about function, can tell me in there, i will add it soon(it's should be a common functional).



bug fixed


add control ratio . default value is 2


change animation's duration time unit to millisecond


fix bug


resolve bug



[0.0.1] - TODO: Add release date.

  • TODO: Describe initial release.

Use this package as a library

1. Depend on it

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

  add_cart_parabola: ^0.0.6

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support 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:add_cart_parabola/add_cart_parabola.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Health suggestions

Format lib/add_cart_parabola.dart.

Run flutter format to format lib/add_cart_parabola.dart.

Maintenance suggestions

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 add_cart_parabola.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies