Skip to content

Commit

Permalink
Doc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rydmike committed Jul 8, 2022
1 parent ad80b5e commit d48de5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ All notable changes to the **FlexColorScheme** (FCS) package are documented here
color is provided, it is also used as the blend color, instead of `primary` color, for
FlexColorScheme's surface blend feature.

* **Added** pass through API for using Flutter 3.0.0 theme extensions directly via FlexColorScheme
* **Added** API for using Flutter 3.0.0 theme extensions directly via FlexColorScheme
API. It was added as a convenience feature in order to avoid having to add theme extensions with a
`copyWith` on FlexColorScheme produced ThemeData. With the `FlexColorScheme.extensions` and
`FlexThemeData.extensions` properties you can add custom theme extensions directly.
Expand Down Expand Up @@ -52,8 +52,8 @@ All notable changes to the **FlexColorScheme** (FCS) package are documented here
otherwise `theme.colorScheme.secondary` is used.

* **Input Decorator default change**: The `TextField` and its `InputDecorator` border radius
default value was changed from 20dp to 16dp when using opinionated component themes.
If opting in on Material 3, the default value for M3 design is used, which is only 4dp.
default value was changed from 20dp to 16 dp when using opinionated component themes.
If opting in on Material 3, the default value for M3 design is used, which is only 4 dp.
See specification https://m3.material.io/components/text-fields/specs.
Flutter 3.0.x does not yet implement the new M3 TextField style, but via this change when
opting in on M3, FlexColorScheme offers an early approximation of it.
Expand Down Expand Up @@ -349,7 +349,7 @@ maybe even 7.0 if so requested by users.
* **Migration:** Use `surfaceMode` and `blendLevel` instead, it has more blend
styles and finer granularity than the removed `surfaceStyle`.

```dart
```
theme: FlexThemeData.light(
scheme: FlexScheme.flutterDash,
surfaceMode: FlexSurfaceMode.highScaffoldLowSurface,
Expand Down
2 changes: 1 addition & 1 deletion test/flex_sub_themes_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3014,7 +3014,7 @@ void main() {
expect(
FlexSubThemes.navigationRailTheme(
colorScheme: colorScheme,
// useFlutterDefaults: false // <<- Asumed as default,
// useFlutterDefaults: false // <<- Assumed as default,
),
equals(
const NavigationRailThemeData(
Expand Down

0 comments on commit d48de5d

Please sign in to comment.