v1.1.0flutter_bounce
एक कुशल Flutter पैकेज जो लपेटे गए विजेट के लिए टैप करने पर बाउंस एनीमेशन का समर्थन करता है। यह iOS और Android दोनों मोबाइल प्लेटफॉर्म के लिए लक्षित है।
यह विजेट्स पर टैप करने पर बाउंस प्रभाव के लिए एक फ्लटर पैकेज है
निर्भरता सूची 2 आइटम
{"sdk":"flutter"}{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Flutter AnimationController and Tranform.scale() Widget.flutter_widget is not the copy paste of bouncing_widget, it works differently. Without limitations, and the functionality works differently, based upon the duration, and not on the scaleFactor.scaleFactor at all, which is required in the widgetflutter_bounce functionality. However, I have taken motivation from the limitations of the bouncing_widgetTo use this plugin, add flutter_bounce as a dependency in your pubspec.yaml file.
This is how the Bounce Widget works when wrapped around the widget. The below shows Bounce being used in both the scenario:
https://raw.githubusercontent.com/aloklearning/flutter_bounce/HEAD/assets/simple-bounce.gif https://raw.githubusercontent.com/aloklearning/flutter_bounce/HEAD/assets/scroll-bounce.gif
import 'package:flutter_bounce/flutter_bounce.dart';
Bounce.child, duration and onPressed is mandatory in the widget.onPressed and duration can have null in the widget. By default duration is set to 100 milliseconds.milliseconds for best resultBounce(
duration: Duration(milliseconds: 110),
onPressed: (){ YOUR_FUNCTION },
child: YOUR_WIDGET
)