flutter_minimalist

Creator: coderz1093

Last updated:

0 purchases

flutter_minimalist Image
flutter_minimalist Images
Add to Cart

Description:

flutter minimalist

Provide some technique and simplified functionalities to minimize some frequently used Flutter/Dart code to maximize productivity and maintain a readable codebase.
Brings together some basic and frequently used methods for easy to access.
Features #

Functionalities as extension.
Minimal code.
Maximize productivity.
More meaningful and readable code structure.


Getting started #
Include dependency in your pubspec.yaml file
dependencies:
flutter:
sdk: flutter
# add flutter_address_from_latlng
flutter_minimalist: ^(updated version)
copied to clipboard
Usage #
For some spacing whether its like margin or padding inside Row() or Column() widget just call getters on num
Column(
children: [
16.verticalSpace, // Equivalent to SizedBox(height: 16)
/// Some widgets
16.verticalSpace, // // Equivalent to SizedBox(height: 16)
Row(
children: [
16.horizontalSpace, // Equivalent to SizedBox(width: 16)
// Some Widgets
16.horizontalSpace, // Equivalent to SizedBox(width: 16)
// Some widgets
]
),
]
)
copied to clipboard
For Margin and padding just call getters on num
// for all padding and margin
Contianer(
padding: 16.allPadding,
margin: 16.allMargin,
)

// for left padding and margin
Contianer(
padding: 16.leftPadding,
margin: 16.leftMargin,
)
copied to clipboard
Simplify Duration() like
void example(){
1.seconds; // Equivalent to Duration(seconds: 16)
1000.milliSeconds; // Equivalent to Duration(milliseconds: 16)
1000000.microSeconds;
2.minutes;
1.hours;
}
copied to clipboard
Ue Future.delay() more minimalistic way
void example() {
1000.milliSeconds.delay.then((val){
//Do your work after 10 seconds delay
});
}
copied to clipboard
Contributing #
Contributions are welcome! If you'd like to contribute, please fork the repository
on GitHub and submit a pull request.
Issues #
If you encounter any issues or bugs, please feel free
to file an issue on the github issue
tracker. We'll do our best to address the issue in a timely manner.
Support #
If you have any questions or need help with the package, contact [email protected].
License #
This package is released under the MIT License

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.