Unverified Commit 231bfac8 authored by Binni Goel's avatar Binni Goel Committed by GitHub

Fix. typos (#137465)

## Description

This PR fixes typos in 
- `date_picker.dart`
- `date_picker_theme.dart`
- `dropdown.dart`
parent f40c9f47
...@@ -301,7 +301,7 @@ class DatePickerThemeData with Diagnosticable { ...@@ -301,7 +301,7 @@ class DatePickerThemeData with Diagnosticable {
/// Overrides the default style of the cancel button of a [DatePickerDialog]. /// Overrides the default style of the cancel button of a [DatePickerDialog].
final ButtonStyle? cancelButtonStyle; final ButtonStyle? cancelButtonStyle;
/// Overrrides the default style of the confirm (OK) button of a [DatePickerDialog]. /// Overrides the default style of the confirm (OK) button of a [DatePickerDialog].
final ButtonStyle? confirmButtonStyle; final ButtonStyle? confirmButtonStyle;
/// Creates a copy of this object with the given fields replaced with the /// Creates a copy of this object with the given fields replaced with the
......
...@@ -611,7 +611,7 @@ class _DropdownRoutePage<T> extends StatefulWidget { ...@@ -611,7 +611,7 @@ class _DropdownRoutePage<T> extends StatefulWidget {
} }
class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> { class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
late ScrollController _scrollSontroller; late ScrollController _scrollController;
@override @override
void initState(){ void initState(){
...@@ -624,7 +624,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> { ...@@ -624,7 +624,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
// Otherwise the initialScrollOffset is just a rough approximation based on // Otherwise the initialScrollOffset is just a rough approximation based on
// treating the items as if their heights were all equal to kMinInteractiveDimension. // treating the items as if their heights were all equal to kMinInteractiveDimension.
final _MenuLimits menuLimits = widget.route.getMenuLimits(widget.buttonRect, widget.constraints.maxHeight, widget.selectedIndex); final _MenuLimits menuLimits = widget.route.getMenuLimits(widget.buttonRect, widget.constraints.maxHeight, widget.selectedIndex);
_scrollSontroller = ScrollController(initialScrollOffset: menuLimits.scrollOffset); _scrollController = ScrollController(initialScrollOffset: menuLimits.scrollOffset);
} }
...@@ -641,7 +641,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> { ...@@ -641,7 +641,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
dropdownColor: widget.dropdownColor, dropdownColor: widget.dropdownColor,
enableFeedback: widget.enableFeedback, enableFeedback: widget.enableFeedback,
borderRadius: widget.borderRadius, borderRadius: widget.borderRadius,
scrollController: _scrollSontroller, scrollController: _scrollController,
); );
return MediaQuery.removePadding( return MediaQuery.removePadding(
...@@ -667,7 +667,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> { ...@@ -667,7 +667,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
@override @override
void dispose() { void dispose() {
_scrollSontroller.dispose(); _scrollController.dispose();
super.dispose(); super.dispose();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment