Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaTesser committed Feb 25, 2025
1 parent d0cdf7f commit 4dea60c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ LinearProgressIndicator(
),
```

To opt into the updated design spec for the `LinearProgressIndicator`, for the
entire app, set the `ProgressIndicatorThemeData.year2023` flag to `false` in
the `MaterialApp`:
To update your entire app to use the updated `LinearProgressIndicator` design,
set the `ProgressIndicatorThemeData.year2023` property to `false` in your
`MaterialApp`:

```dart highlightLines=2
return MaterialApp(
theme: ThemeData(progressIndicatorTheme: const ProgressIndicatorThemeData(year2023: false)),
/// ...
// ...
LinearProgressIndicator(
year2023: false,
value: 0.5,
),
/// ...
// ...
```

To opt into the updated design spec for the `CircularProgressIndicator`,
Expand All @@ -80,19 +80,19 @@ CircularProgressIndicator(
),
```

To opt into the updated design spec for the `CircularProgressIndicator`, for the
entire app, set the `ProgressIndicatorThemeData.year2023` flag to `false` in
the `MaterialApp`:
To update your entire app to use the updated `CircularProgressIndicator` design,
set the `ProgressIndicatorThemeData.year2023` property to `false` in your
`MaterialApp`:

```dart highlightLines=2
return MaterialApp(
theme: ThemeData(progressIndicatorTheme: const ProgressIndicatorThemeData(year2023: false)),
/// ...
// ...
CircularProgressIndicator(
year2023: false,
value: 0.5,
),
/// ...
// ...
```

## Timeline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ Slider(
),
```

To opt into the updated design spec for the `Slider`, for the entire app, set
the `SliderThemeData.year2023` flag to `false` in the `MaterialApp`:
To update your entire app to use the updated `Slider` design, set the
`SliderThemeData.year2023` property to `false` in your `MaterialApp`:

```dart highlightLines=2
return MaterialApp(
theme: ThemeData(sliderTheme: const SliderThemeData(year2023: false)),
/// ...
// ...
Slider(
value: _value,
onChanged: (value) {
Expand All @@ -65,7 +65,7 @@ return MaterialApp(
});
},
),
/// ...
// ...
```

## Timeline
Expand Down

0 comments on commit 4dea60c

Please sign in to comment.