Skip to content

Commit

Permalink
removing SpaceResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
tilucasoli authored Dec 3, 2024
1 parent 5824b1f commit 3b3fe16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/pages/docs/guides/design-token.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ final docTheme = MixThemeData(

### Dynamic Themes

Mix allows you to define dynamic themes, which means that the values of the design tokens can be resolved dynamically using a [BuildContext](https://api.flutter.dev/flutter/widgets/BuildContext-class.html). To do this, you need to use the `ColorResolver`, `TextStyleResolver`, `RadiusResolver`, `SpaceResolver` and `BreakpointResolver` classes. These classes are used to resolve the values of the design tokens based on the current `BuildContext`.
Mix allows you to define dynamic themes, which means that the values of the design tokens can be resolved dynamically using a [BuildContext](https://api.flutter.dev/flutter/widgets/BuildContext-class.html). To do this, you need to use the `ColorResolver`, `TextStyleResolver`, `RadiusResolver` and `BreakpointResolver` classes. These classes are used to resolve the values of the design tokens based on the current `BuildContext`.

As an example, let's say you want to define a `surface` color token that changes based on the platform brightness. You can do this by using the `ColorResolver` class:

Expand Down

0 comments on commit 3b3fe16

Please sign in to comment.