Skip to content

Commit

Permalink
Fixes #158
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa committed Feb 9, 2022
1 parent e3c4b5c commit aeeb76e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Date format: DD/MM/YYYY
- `ToggleButton` and `FilledButton` now share the same style
- `ScaffoldPage.scrollable` and `ScaffoldPage.withPadding`
- Ensure we use `Typography.body` as the default text style on `BaseButton` ([#120](https://github.com/bdlukaa/fluent_ui/issues/160))
- **BREAKING** Renamed `standartCurve` to `standardCurve`

## [3.8.0] - Flutter Favorite - [03/02/2022]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class PaneItem extends NavigationPaneItem {
selected: selected,
child: AnimatedContainer(
duration: theme.animationDuration ?? Duration.zero,
curve: theme.animationCurve ?? standartCurve,
curve: theme.animationCurve ?? standardCurve,
margin: const EdgeInsets.only(right: 6.0, left: 6.0, bottom: 4.0),
decoration: BoxDecoration(
color: () {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/styles/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ extension BrightnessExtension on Brightness {
Brightness get opposite => isLight ? Brightness.dark : Brightness.light;
}

const standartCurve = Curves.easeInOut;
const standardCurve = Curves.easeInOut;

/// Defines the default theme for a [FluentApp] or [FluentTheme].
@immutable
Expand Down Expand Up @@ -307,7 +307,7 @@ class ThemeData with Diagnosticable {
fastAnimationDuration ??= const Duration(milliseconds: 167);
mediumAnimationDuration ??= const Duration(milliseconds: 250);
slowAnimationDuration ??= const Duration(milliseconds: 358);
animationCurve ??= standartCurve;
animationCurve ??= standardCurve;
accentColor ??= Colors.blue;
activeColor ??= Colors.white;
inactiveColor ??= isLight ? Colors.black : Colors.white;
Expand Down

0 comments on commit aeeb76e

Please sign in to comment.