power_ups

Creator: coderz1093

Last updated:

0 purchases

power_ups Image
power_ups Images
Add to Cart

Description:

power ups

A group of widgets, methods and extension to improve your coding experience.
Some features were taken from this great repository of flutter and dart tricks:
flutter-tips-and-tricks.
Other features were obtained from stack overflow and others blogs 😅. Thanks to all of them.
Features #


Animations

Reveal animation
Shake animation



Extensions

Duration
Iterable
String
Widget



Installation #
Just add this to your pubspec.yaml:
dependencies:
power_ups: ^0.1.1
copied to clipboard
Or
dependencies:
power_ups:
git: https://github.com/alejandrogiubel/power_ups.git
copied to clipboard
Usage #

Reveal animation

widget.withRevealAnimation
copied to clipboard

Delayed reveal animation

widget.withDelayedRevealAnimation(const Duration(microseconds: 200))
copied to clipboard

Shake animation

late AnimationController animationController;

widget.withShakeAnimation(
(controller) {
animationController = controller;
},
animationWidth: 5, //Horizontal size of the animation. Optional. Default 10.
animationDuration: Duration(milliseconds: 100) //Animation duration. Optional. Default 370 milliseconds.
),

ElevatedButton(
onPressed: () {
animationController.forward(from: 0.0);
},
child: Text('Do shake'),
),
copied to clipboard

Map with index

List list = ['apple', 'banana', 'mango'];
list.mapWithIndex(
(index, value) {
print(index);
print(value);
},
);
copied to clipboard

String utils

String name = 'john doe';
name.inCapFirst; // John doe
name.allInCaps; //JOHN DOE
name.capitalizeFirstOfEach; // John Doe
copied to clipboard

Duration to text

Duration duration = const Duration(seconds: 3);
print(duration.toText()); // 00:03
copied to clipboard
Additional information #
PR are welcome

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.