- wyatt_analysis@2.4.1
Flutter - Wyatt Ui Kit
UIKit and Design System used in Wyatt Studio.
Theme negotiation
When building a component, most of its attributes can be 'null'.
The build()
method then starts to negotiate the theme in the tree to obtain the most consistent style possible.
Explanation:
When you build a component Button({double? radius})
.
You have several possibilities:
- Pass the "radius" into the constructor,
Button(radius: 12)
. - Set up a theme extension
ButtonThemeExtension(radius: 15)
. - Let
wyatt_ui_kit
"negotiate" and try to find a suitable style in the flutter theme.
If this negotiation phase fails, then:
- If the value is mandatory: a hardcoded value in "wyatt_ui_kit" is chosen.
- If not, the style is simply not applied.
If, for example, you don't use option 1, then the radius will be 15. If you use neither option 1 nor option 2 then the radius will be 4 as this is the official Material Design value.
Features
TODO: List what your package can do. Maybe include images, gifs, or videos.
Getting started
TODO: List prerequisites and provide or point to information on how to start using the package.
Usage
TODO: Include short and useful examples for package users. Add longer examples
to /example
folder.
const like = 'sample';
Additional information
TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.