Get started with Style
Inspired by the famous TailwindCSS library, Style is a better way to customize the UI appearence of your Flutter widgets.
Installation
Section titled “Installation”-
Include the dependency in your
pubspec.yaml:pubspec.yaml dependencies:style:hosted: https://pub.mariuti.comversion: ^1.0.0 # Replace with the latest version -
Add
style_lintto youranalysis_options.yaml:analysis_options.yaml plugins:style_lint:hosted: https://pub.mariuti.comversion: ^1.0.0 # Replace with the latest versionstyle_lintflags unknown classes and variants as you type and gives you the “Wrap with Style” and “Style: Sort classes” assists. -
Import the library in your dart files:
main.dart import 'package:style/style.dart'; -
Use it in your widgets.
main.dart Style('text-2xl font-medium', child: Text('Hello from Style')),