quickly 2.0.0 quickly: ^2.0.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 build as a tool to enhance your Flutter UI development experience and make code easier. It is highly inspired by Bootstrap and Tailwind CSS. It also provide lots of extension methods on String, List and Map.
Built With #
Usage #
Flutter #
// Display big bold red string in italic
Text('Quickly').red500.xl.bold.italic
// 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]];
// 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
For more examples, please refer to the Documentation
Contributing #
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- 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