customize 0.1.0 customize: ^0.1.0 copied to clipboard
Customize Flutter is awesome package to create beautiful UI.
Customize is awesome flutter package to create beautiful UI.
Thanks to the introduction of extension methods in Dart 2.7.0, customize
makes it possible to build widget tree`s more readable and efficient.
Customize
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.
How to Use #
# add this line to your dependencies
customize: ^0.1.0
import 'package:customize/customize.dart';
Basic Dart Example #
List mapList = [
{'id': 1, 'name': 'Desk', 'price': 200},
{'id': 2, 'name': 'Chair', 'price': 100},
{'id': 3, 'name': 'Bookcase', 'price': 150},
];
//Get only those object whose price is 150 & 200
print(mapList.whereIn('price', [150,200]));
[
{id: 3, name: Bookcase, price: 150},
{id: 1, name: Desk, price: 200}
]
//Get only those object whose price is not 150 & 200
print(mapList.whereNotIn('price', [150,200]));
[
{'id': 2, 'name': 'Chair', 'price': 100}
]
Some other methods #
- flatten
- flattenMap
- countBy
- pluck()
- sorted()
- sortBy()
- diff()
- chunk()
- only()
- notOnly()
- whereIn()
- whereNotIn()
- whereBetween()
- whereNotBetween()
- containsInMap()
- containsKeyInMap()
- containsValueInMap()
Read the full API reference.