Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/material_ui/lib/src/autocomplete.dart
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ class _AutocompleteField extends StatelessWidget {
// The default Material-style Autocomplete options.
class _AutocompleteOptions<T extends Object> extends StatelessWidget {
const _AutocompleteOptions({
super.key,
required this.displayStringForOption,
required this.onSelected,
required this.openDirection,
Expand Down
1 change: 0 additions & 1 deletion packages/material_ui/lib/src/bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,6 @@ class _RenderBottomSheetLayoutWithSizeListener extends RenderShiftedBox {

class _ModalBottomSheet<T> extends StatefulWidget {
const _ModalBottomSheet({
super.key,
required this.route,
this.backgroundColor,
this.elevation,
Expand Down
14 changes: 4 additions & 10 deletions packages/material_ui/lib/src/dropdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ class _DropdownMenuPainter extends CustomPainter {
// The widget that is the button wrapping the menu items.
class _DropdownMenuItemButton<T> extends StatefulWidget {
const _DropdownMenuItemButton({
super.key,
this.padding,
required this.route,
required this.buttonRect,
Expand Down Expand Up @@ -249,7 +248,6 @@ class _DropdownMenuItemButtonState<T> extends State<_DropdownMenuItemButton<T>>

class _DropdownMenu<T> extends StatefulWidget {
const _DropdownMenu({
super.key,
this.padding,
required this.route,
required this.buttonRect,
Expand All @@ -258,7 +256,6 @@ class _DropdownMenu<T> extends StatefulWidget {
required this.enableFeedback,
this.borderRadius,
required this.scrollController,
this.menuWidth,
this.mouseCursor,
});

Expand All @@ -270,7 +267,6 @@ class _DropdownMenu<T> extends StatefulWidget {
final bool enableFeedback;
final BorderRadius? borderRadius;
final ScrollController scrollController;
final double? menuWidth;
final MouseCursor? mouseCursor;

@override
Expand Down Expand Up @@ -649,7 +645,6 @@ class _DropdownRoute<T> extends PopupRoute<_DropdownRouteResult<T>> {

class _DropdownRoutePage<T> extends StatefulWidget {
const _DropdownRoutePage({
super.key,
required this.route,
required this.constraints,
this.items,
Expand Down Expand Up @@ -758,7 +753,7 @@ class _DropdownRoutePageState<T> extends State<_DropdownRoutePage<T>> {
// selected item lines up with the vertical center of the dropdown button,
// as closely as possible.
class _MenuItem<T> extends SingleChildRenderObjectWidget {
const _MenuItem({super.key, required this.onLayout, required this.item}) : super(child: item);
const _MenuItem({required this.onLayout, required this.item}) : super(child: item);

final ValueChanged<Size> onLayout;
final DropdownMenuItem<T>? item;
Expand Down Expand Up @@ -1054,7 +1049,6 @@ class DropdownButton<T> extends StatefulWidget {
_isEmpty = false;

DropdownButton._formField({
super.key,
required this.items,
this.selectedItemBuilder,
this.value,
Expand All @@ -1064,15 +1058,13 @@ class DropdownButton<T> extends StatefulWidget {
this.onTap,
this.elevation = 8,
this.style,
this.underline,
this.icon,
this.iconDisabledColor,
this.iconEnabledColor,
this.iconSize = 24.0,
this.isDense = false,
this.isExpanded = false,
this.itemHeight = kMinInteractiveDimension,
this.menuWidth,
this.focusColor,
this.focusNode,
this.autofocus = false,
Expand All @@ -1087,7 +1079,9 @@ class DropdownButton<T> extends StatefulWidget {
this.dropdownMenuItemMouseCursor,
required this._inputDecoration,
required this._isEmpty,
}) : assert(
}) : underline = null,
menuWidth = null,
assert(
items == null ||
items.isEmpty ||
value == null ||
Expand Down
1 change: 0 additions & 1 deletion packages/material_ui/lib/src/popup_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,6 @@ class _CheckedPopupMenuItemState<T> extends PopupMenuItemState<T, CheckedPopupMe

class _PopupMenu<T> extends StatefulWidget {
const _PopupMenu({
super.key,
required this.itemKeys,
required this.route,
required this.semanticLabel,
Expand Down
1 change: 0 additions & 1 deletion packages/material_ui/lib/src/segmented_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,6 @@ class SegmentedButtonState<T> extends State<SegmentedButton<T>> {

class _SegmentedButtonRenderWidget<T> extends MultiChildRenderObjectWidget {
const _SegmentedButtonRenderWidget({
super.key,
required this.segments,
required this.enabledBorder,
required this.disabledBorder,
Expand Down
7 changes: 1 addition & 6 deletions packages/material_ui/test/scaffold_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3877,12 +3877,7 @@ class _GeometryCachePainter extends CustomPainter {
}

class _CustomPageRoute<T> extends PageRoute<T> {
_CustomPageRoute({
required this.builder,
RouteSettings super.settings = const RouteSettings(),
this.maintainState = true,
super.fullscreenDialog,
});
_CustomPageRoute({required this.builder, this.maintainState = true, super.fullscreenDialog});

final WidgetBuilder builder;

Expand Down
Loading