Fix. typos (#137465)
## Description This PR fixes typos in - `date_picker.dart` - `date_picker_theme.dart` - `dropdown.dart`
This commit is contained in:
parent
f40c9f47fb
commit
231bfac8d3
@ -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 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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>> {
|
|||||||
// 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>> {
|
|||||||
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>> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
_scrollSontroller.dispose();
|
_scrollController.dispose();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user