awesome_extensions 0.0.2
awesome_extensions: ^0.0.2 copied to clipboard
An extension to the widget that helps to reduce the boilerplate and adds some helpful methods.
awesome_extensions #
Let get started 💪 #
- Go to
pubspec.yaml - add a awesome_extensions and replace
[version]with the latest version:
dependencies:
awesome_extensions: ^[version]
- click the packages get button or flutter pub get
TextStyle Extensions #
.bold() #
Text('Hello World',
style: Theme.of(context).textTheme.caption.bold,
),
Similar text style extensions are:
mostThickThe most thick - FontWeight.w900extraBoldExtra-bold - FontWeight.w800boldBold - FontWeight.bold - FontWeight.w700semiBoldSemi-bold - FontWeight.w600mediumMedium - FontWeight.w500regularRegular - FontWeight.w400lightLight - FontWeight.w300extraLightExtra-light - FontWeight.w200thinThin, the least thick - FontWeight.w100