quickly 3.3.0 quickly: ^3.3.0 copied to clipboard
Quickly is build for faster and cleaner development. It provides lots of extension methods on Widget, String, List and Map.
Quickly is awesome flutter package for faster and cleaner development.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents #
About The Project #
**Quickly**
is a powerful Flutter package that aims to enhance the development experience by offering a variety of extension methods for types such as String, List and Map, allowing for a more efficient and cleaner coding experience. It is inspired by Bootstrap and Tailwind CSS, and is built using Flutter and Dart. The package offers a wide range of utility functions, such as applying padding, visibility, and text styling to widgets. It can be easily integrated into your code by importing the package and using the provided extension methods on your widgets.
With Quickly, developers can take advantage of features such as:
- A collection of useful widgets and classes for quickly creating common UI elements.
- Utility functions for common tasks like data validation and formatting.
- Performance optimization tools for improving the overall performance of your app.
In summary, Quickly is an essential tool for any Flutter developer looking to improve their development workflow and create high-quality, polished apps.
Built With #
Usage #
Flutter #
// Display big bold red string in italic
Text('Quickly').red500.xl.bold.italic.underline
// Apply padding to Widget
Text('12 Padding from all side').p12
Text('4 Padding from top and bottom side').py4
Text('16 Padding from all side except top').pnt16
// Visibility
Container(child:Text('hide')).hide
Container(child:Text('show')).show
Container(
child:Text('hide if condition true'),
).hideIf(condition)
Container(
child:Text('show if condition true'),
).showIf(condition)
Dart #
// get sorted list
list.sorted() // pass true for desc
list.sortedDec()
// get sorted list by key from list of object
list.sortedBy(key)
// checks given key/value pair is present or not
map.contains("key","value") // true
// return id if key present else return 0
map.getId
// key is NULL or not [String] type return empty string else return value of key
map.getString('key')
// Get suffix
1.suffix() // 1st
2.suffix() // 2nd
8.suffix() // 8th
10.5.suffix('$') // 10.5$
// getMonthName
1.getMonthName() // January
2.getMonthName(true) // Jan
// getWeekName
1.getWeekName() // Monday
2.getWeekName(true) // Mon
// divide list into equal elements
[1,2,3,4,5].chunk(2) // [[1,2], [3,4], [5]];
// divide list into equal parts
[1,2,3,4,5].split(2) // [[1,2,3], [4,5]];
// create new ascending order list
[4,3,1,2,5].sorted() // [1,2,3,4,5]
// create new descending order list
[4,3,1,2,5].sortedDesc // [5,4,3,2,1]
// match the the condition with key and return value
{1: 'One', 2: 'Two'}.match(2) // Two
{1: 'One', 2: 'Two'}.match(3) // Invalid input
{1: 'One', 2: 'Two'}.match(4,'Does not match') // Does not match
List list =
[
{'id': 1, 'name': 'P 1'},
{'id': 2, 'name': 'P 2'},
];
// retrieves all of the values for a given key
list.pluck('name') // ["P 1", "P 2"]
list.pluck('price') // []
For more examples, please refer to the Documentation
Contributing #
We welcome and greatly appreciate any contributions to Quickly. Whether you have a bug report, feature suggestion, or are interested in helping to develop the package, we encourage you to get involved.
Here are a few ways you can contribute:
-
Report a bug: If you find a bug or issue with the package, please open an issue and provide as much detail as possible about the problem.
-
Suggest a feature: If you have an idea for a new feature or improvement, please open an issue and share your thoughts.
-
Contribute code: If you're interested in developing the package further, please fork the repository and submit a pull request with your changes. Before submitting, please make sure to run the tests and ensure that your code follows the project's coding style.
-
Spread the word: If you find Quickly useful, please tell your friends and colleagues about it and give the project a star on GitHub.
Thank you for your support!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License #
Distributed under the MIT License. See LICENSE
for more information.
Contact #
Aniket Khote - @aniketkhote99 - [email protected]
Project Link: https://github.com/Aniketkhote/Quickly