Aniketkhote / Quickly

Quickly is build as a tool to enhance your Flutter UI development experience and make code easier.
https://pub.dev/packages/quickly
MIT License
22 stars 3 forks source link
dart flutter flutter-example flutter-extensions flutter-package flutter-widgets uikit

Quickly is awesome flutter package for faster and cleaner development.

Explore the docs »
Report Bug · Request Feature

![Pub Version](https://img.shields.io/pub/v/quickly?color=blue&style=the-badge)

Table of Contents

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

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:

In summary, Quickly is an essential tool for any Flutter developer looking to improve their development workflow and create high-quality, polished apps.

(back to top)

Built With

(back to top)

Usage

Flutter


// Display big bold red Text in italic with underline and alligned it to center
Text('Quickly').red500.xl.bold.italic.underline.center

// 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
Text('Hide this widget').hide()

// Rounded border
Text('Make rounded this widget').rounded

// Vertical space
2.hBox(child:Text('Added 2dp vertical space'))

Dart

The following are a list of extensions on various types (lists, maps, integers, and doubles) to provide additional functionality:

List Extensions:

Sample data :


numbers = [5, 2, 9, 1, 7]
people = [{'name': 'Bob', 'age': 30}, {'name': 'Alice', 'age': 25}]

numbers.sorted()  // [1, 2, 5, 7, 9]

numbers.sortedDec()  // [9, 7, 5, 2, 1]

people.sortedBy('age')  // [{'name': 'Alice', 'age': 25}, {'name': 'Bob', 'age': 30}]

numbers.chunk(2)  // [[5, 2], [9, 1], [7]]

numbers.split(3)  // [[5, 2], [9], [1, 7]]

people.pluck('name')  // ['Bob', 'Alice', 'Charlie']

Map Extensions:

Sample data :


person = {'name': 'Bob', 'age': 30, 'gender': 'male'}

person.has('gender', 'male')  // true

person.getId()  // null

person.getString('name')  // 'Bob'

person.getBool('gender')  // false

person.retainKeys(['name', 'age'])  // {'name': 'Bob', 'age': 30}

person.match('age', 'Unknown')  // 30

Num Extensions:


8.suffix()  // '8th'

10.5.suffix('$')  // '10.5$'

1.getMonthName()  // 'January'

1.getMonthName(isShort:true)  // 'Jan'

3.getWeekName()  // 'Wednesday'

3.getWeekName(isShort:true)  // 'Wed'

For more examples, please refer to the Documentation

(back to top)

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:

Thank you for your support!

  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 - aniketkhote99@gmail.com

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

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

(back to top)