Skip to content

Commit 231bfac

Browse files
authored
Fix. typos (#137465)
## Description This PR fixes typos in - `date_picker.dart` - `date_picker_theme.dart` - `dropdown.dart`
1 parent f40c9f4 commit 231bfac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/flutter/lib/src/material/date_picker_theme.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class DatePickerThemeData with Diagnosticable {
301301
/// Overrides the default style of the cancel button of a [DatePickerDialog].
302302
final ButtonStyle? cancelButtonStyle;
303303

304-
/// Overrrides the default style of the confirm (OK) button of a [DatePickerDialog].
304+
/// Overrides the default style of the confirm (OK) button of a [DatePickerDialog].
305305
final ButtonStyle? confirmButtonStyle;
306306

307307
/// Creates a copy of this object with the given fields replaced with the

packages/flutter/lib/src/material/dropdown.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ class _DropdownRoutePage<T> extends StatefulWidget {
611611
}
612612

613613
class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
614-
late ScrollController _scrollSontroller;
614+
late ScrollController _scrollController;
615615

616616
@override
617617
void initState(){
@@ -624,7 +624,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
624624
// Otherwise the initialScrollOffset is just a rough approximation based on
625625
// treating the items as if their heights were all equal to kMinInteractiveDimension.
626626
final _MenuLimits menuLimits = widget.route.getMenuLimits(widget.buttonRect, widget.constraints.maxHeight, widget.selectedIndex);
627-
_scrollSontroller = ScrollController(initialScrollOffset: menuLimits.scrollOffset);
627+
_scrollController = ScrollController(initialScrollOffset: menuLimits.scrollOffset);
628628
}
629629

630630

@@ -641,7 +641,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
641641
dropdownColor: widget.dropdownColor,
642642
enableFeedback: widget.enableFeedback,
643643
borderRadius: widget.borderRadius,
644-
scrollController: _scrollSontroller,
644+
scrollController: _scrollController,
645645
);
646646

647647
return MediaQuery.removePadding(
@@ -667,7 +667,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
667667

668668
@override
669669
void dispose() {
670-
_scrollSontroller.dispose();
670+
_scrollController.dispose();
671671
super.dispose();
672672
}
673673
}

0 commit comments

Comments
 (0)