Hugo Pointcheval b1d66dc6e4
All checks were successful
continuous-integration/drone/push Build is passing
chore(release): publish packages
- wyatt_analysis@2.4.1
2023-02-24 10:20:00 +01:00
..
2023-02-24 10:20:00 +01:00
2023-02-23 19:19:48 +01:00
2023-02-17 14:48:23 +01:00
2023-02-24 10:20:00 +01:00

Flutter - Wyatt Ui Kit

Style: Wyatt Analysis SDK: Flutter

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:

  1. Pass the "radius" into the constructor, Button(radius: 12).
  2. Set up a theme extension ButtonThemeExtension(radius: 15).
  3. 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.