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 {
/// Overrides the default style of the cancel button of a [DatePickerDialog].
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;
/// Creates a copy of this object with the given fields replaced with the
......
......@@ -611,7 +611,7 @@ class _DropdownRoutePage<T> extends StatefulWidget {
}
class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
late ScrollController _scrollSontroller;
late ScrollController _scrollController;
@override
void initState(){
......@@ -624,7 +624,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
// Otherwise the initialScrollOffset is just a rough approximation based on
// 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);
_scrollSontroller = ScrollController(initialScrollOffset: menuLimits.scrollOffset);
_scrollController = ScrollController(initialScrollOffset: menuLimits.scrollOffset);
}
......@@ -641,7 +641,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
dropdownColor: widget.dropdownColor,
enableFeedback: widget.enableFeedback,
borderRadius: widget.borderRadius,
scrollController: _scrollSontroller,
scrollController: _scrollController,
);
return MediaQuery.removePadding(
......@@ -667,7 +667,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
@override
void dispose() {
_scrollSontroller.dispose();
_scrollController.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