Skip to content

This repo belongs to dart extensions methods on almost all categories like List, Strings, Map, DateTime etc.

License

Notifications You must be signed in to change notification settings

Huzaifaahmed20/awesome-dart-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

This repo belongs to dart extensions methods on almost all categories like List, Strings, Map, DateTime etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages