awesome_dart_extensions 0.0.3
awesome_dart_extensions: ^0.0.3 copied to clipboard

Awesome dart extensions on various dart data types with your own custom methods.

Awesome Dart Extensions #

Access most used custom methods or extensions on various data types in dart for example, List, String, DateTime, BuildContext and many more.

Available & Active Extensions #

I update this package frequently to add more and more extensions and I also looking for your contribution on this package, please read Contribution Guidelines

List #

  • addMore:   Add more items in the list
  • addMoreIf:   Add more items in the list on given condition

String #

  • capitalizeFirstWord:   Capitalize first word of your string For Example:

      var testString = "hello world".capitalizeFirstWord()
      print(testString); // Hello world
    

DateTime #

  • toHuman:   Format given date to human readable format.
  • isSameDate:   Check if two given dates are same.
  • weekdayName:   Returns weekday name of given date.
  • monthName:   Returns month name of given date.

BuildContext #

  • screenSize:   Get screen size of your device (width / height).
  • screenPercent:   Get screen size at given percentage of your screen (width / height).
  • isLargeNotch:   Check if device has large top notch.
  • topSpace:   Give padding from top (Recommended when making cutom AppBar).
  • largeNotch:   Check if device has normal notch from top.
  • bottomSpace:   Give some space from bottom When opening a keyboard.
  • isSmallScreen:   Give some space from bottom When opening a keyboard.
  • isVSmallScreen:   Give some space from bottom When opening a keyboard.
  • textTheme:   Get TextTheme from context Theme.of(context).textTheme.
  • appTheme:   Get AppTheme from context Theme.of(context).

Support #

You liked this package? then give it a star. If you want to help then:

3
likes
90
pub points
0%
popularity

Awesome dart extensions on various dart data types with your own custom methods.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on awesome_dart_extensions