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:
mostThick
The most thick - FontWeight.w900extraBold
Extra-bold - FontWeight.w800bold
Bold - FontWeight.bold - FontWeight.w700semiBold
Semi-bold - FontWeight.w600medium
Medium - FontWeight.w500regular
Regular - FontWeight.w400light
Light - FontWeight.w300extraLight
Extra-light - FontWeight.w200thin
Thin, the least thick - FontWeight.w100