awesome_extensions 0.0.1 awesome_extensions: ^0.0.1 copied to clipboard
An extension to the widget that helps to reduce the boilerplate and adds some helpful methods.
flutter_extension #
Let get started 💪 #
- Go to
pubspec.yaml
- add a flutter_extension and replace
[version]
with the latest version:
dependencies:
flutter_extension: ^[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