quickly 2.1.0 copy "quickly: ^2.1.0" to clipboard
quickly: ^2.1.0 copied to clipboard

outdated

Quickly is build for faster and cleaner development. It provides lots of extension methods on Widget, String, List and Map.


Logo

Quickly is awesome flutter package for faster and cleaner development.
Explore the docs »

View Demo · Report Bug · Request Feature

Pub Version GitHub Release Date GitHub Workflow Status pub points popularity likes

Table of Contents #

  1. About The Project
  2. Usage
  3. Contributing
  4. License
  5. Contact

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.

(back to top)

Built With #

(back to top)

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]];

// 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

(back to top)

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License #

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact #

Aniket Khote - @aniketkhote99 - [email protected]

Project Link: https://github.com/Aniketkhote/Quickly

Show some ❤️ to Like, Follow, and Star our repo! #

(back to top)

40
likes
0
pub points
76%
popularity

Publisher

verified publisherdreamlancer.in

Quickly is build for faster and cleaner development. It provides lots of extension methods on Widget, String, List and Map.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, get

More

Packages that depend on quickly