Skip to content

Commit

Permalink
Fix typo: "alignement" (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Nov 30, 2022
1 parent 6bb4562 commit a5ee1ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/src/controls/yaru_close_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ class YaruCloseButton extends StatelessWidget {
super.key,
this.enabled = true,
this.onPressed,
this.alignement = Alignment.center,
this.alignment = Alignment.center,
});

final bool enabled;
final Function()? onPressed;
final AlignmentGeometry alignement;
final AlignmentGeometry alignment;

@override
Widget build(BuildContext context) {
return Align(
alignment: alignement,
alignment: alignment,
child: YaruIconButton(
padding: EdgeInsets.zero,
onPressed: enabled ? onPressed ?? Navigator.of(context).maybePop : null,
Expand Down
6 changes: 3 additions & 3 deletions lib/src/layouts/yaru_navigation_rail_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class _YaruNavigationRailItemState extends State<YaruNavigationRailItem> {
YaruNavigationRailItemScope.maybeOf(context)?.selected == true;
}

Alignment get _alignement {
Alignment get _alignment {
return widget.style == YaruNavigationRailStyle.labelledExtended ||
oldStyle == YaruNavigationRailStyle.labelledExtended
? Alignment.centerLeft
Expand All @@ -126,9 +126,9 @@ class _YaruNavigationRailItemState extends State<YaruNavigationRailItem> {
Widget _buildSizedContainer(Widget child) {
return AnimatedSize(
duration: _kSizeAnimationDuration,
alignment: _alignement,
alignment: _alignment,
child: Align(
alignment: _alignement,
alignment: _alignment,
child: SizedBox(
width: _width,
child: child,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/utilities/yaru_carousel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class _YaruCarouselState extends State<YaruCarousel> {
}

Widget _buildNavigationButton(
AlignmentGeometry alignement,
AlignmentGeometry alignment,
VoidCallback? onPressed,
Widget icon,
) {
Expand All @@ -171,7 +171,7 @@ class _YaruCarouselState extends State<YaruCarousel> {
duration: _controller.scrollAnimationDuration,
curve: _controller.scrollAnimationCurve,
child: Align(
alignment: alignement,
alignment: alignment,
child: OutlinedButton(
style: OutlinedButton.styleFrom(
shape: const CircleBorder(),
Expand Down

0 comments on commit a5ee1ee

Please sign in to comment.