customize 1.0.2 copy "customize: ^1.0.2" to clipboard
customize: ^1.0.2 copied to clipboard

discontinued
outdated

Customize is awesome Flutter package to create beautiful UI.

Customize is awesome flutter package to create beautiful UI. #


Pub Version GitHub contributors GitHub Release Date GitHub Workflow Status GitHub code size in bytes pub points popularity likes

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. It also provide lots of extension methods on String, List and Map.

How to Use #

# add this line to your dependencies and replace [version] with the latest version:
  customize: ^[version]
import 'package:customize/customize.dart';

Basic Flutter Example #

/// Custom Alert Box
 FxAlert(
  title: "alert title".toTitleCase(),
  message: "this is alert message".toSentenceCase(),
  icon: Icons.check,
  borderRadius: FxRadius.radius10,
  leftBar: true,
)

///Custom Icon Box
 FxIconBox(
  child: Icon(Icons.person),
  radius: FxRadius.radius20,
  onTap: null,
)

///Custom Empty State
FxEmptyState(
  title: "Your Cart is Empty",
  subTitle:"Looks like you haven't added anything to your cart yet.",
  child: Image.network("https://www.flaticon.com/svg/vstatic/svg/102/102661.svg?token=exp=1618664741~hmac=88edc7611774d198a964701ef715bebb"),
),



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

   //Get only those key/values which is this keys
  print(mapList.only(['name','price']));

  [
    {'name': 'Bookcase', 'price': 150}, 
    {'name': 'Chair', 'price': 100},
    {'name': 'Desk', 'price': 200}
  ]


  //Get all key/values excepted this key
  print(mapList.notOnly(['price']));

  [
    {'id': 1, 'name': 'Desk'},
    {'id': 2, 'name': 'Chair'},
    {'id': 3, 'name': 'Bookcase'}
  ]



Some other methods and Widgets #

Widgets
  • FxAlert
  • FxIconBox
  • FxButton
  • FxEmptyState
  • FxCallout
  • HBox
  • WBox
  • SquareBox
String Methods
  • isAlphabet
  • isEmail
  • isNumber
  • isMobileNumber
  • removeWhitespace
  • toSlug
  • minLength()
  • maxLength()
  • range()
  • mask()
  • countBy()
  • toTitleCase()
  • toSentenceCase()
  • toCapitalCase()
  • Checks file extensions(eg. png,svg,pdf,audio,video and more).

String API Reference.

List Methods
  • flatten
  • flatMap
  • random
  • min
  • max
  • sum
  • avg
  • median
  • mode
  • groupBy
  • countBy()
  • groupByKey()
  • pluck()
  • sorted()
  • sortBy()
  • diff()
  • chunk()
  • only()
  • notOnly()
  • whereIn()
  • whereNotIn()
  • whereBetween()
  • whereNotBetween()
  • hasKeyValue()
  • hasKey()
  • hasValue()

List API Reference.

Map Methods
  • getId
  • isEmptyOrNull
  • isNotEmptyOrNull
  • contains()
  • diffKeys()
  • diffValues()
  • getBool()
  • getInt()
  • getDouble()
  • getString()
  • getList()

Map API Reference.

Fakers Methods
  • word()
  • words()
  • sentence()
  • sentences()
  • paragraph()
  • paragraphs()

Read the full API reference.

Read Documentation.


Contributing #

Customize is 100% free and open source. We encourage and support an active, healthy community that accepts contributions from the public – including you.

  • Pick up any issue marked with label "good first issue"
  • Fix a bug
  • Write and improve some documentation. Documentation is very critical to us. We would appreciate help in adding multiple languages to our docs.
  • If you are a developer, feel free to check out the source and submit pull requests.
  • Please don't forget to like, follow, and star our repo! Join our growing community to keep up to date with the latest GetWidget development.

Code and documentation Copyright 2021 Aniket Khote


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


21
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Customize is awesome Flutter package to create beautiful UI.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

crypto, flutter, get

More

Packages that depend on customize