Skip to content

Commit ee97f83

Browse files
committed
Fixed CupertinoButton analyzer issues
1 parent 4a2e84b commit ee97f83

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

examples/api/lib/material/context_menu/editable_text_toolbar_builder.0.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ class _EditableTextToolbarBuilderExampleAppState extends State<EditableTextToolb
6363
// buttons depending on the platform.
6464
children: editableTextState.contextMenuButtonItems.map((ContextMenuButtonItem buttonItem) {
6565
return CupertinoButton(
66-
borderRadius: null,
6766
color: const Color(0xffaaaa00),
6867
disabledColor: const Color(0xffaaaaff),
6968
onPressed: buttonItem.onPressed,

packages/flutter/lib/src/cupertino/button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const double kCupertinoFocusColorOpacity = 0.80,
8383
const double kCupertinoButtonTintedOpacityLight = 0.12,
8484
kCupertinoButtonTintedOpacityDark = 0.26;
8585

86-
/// The default icon size for a [CupertinoButton] when the [child] is an [Icon].
86+
/// The default icon size for [IconThemeData.size] of [CupertinoButton.child].
8787
///
8888
/// Used only when the [CupertinoTextThemeData.actionTextStyle] or [CupertinoTextThemeData.actionSmallTextStyle]
8989
/// has a null [TextStyle.fontSize].

packages/flutter/lib/src/cupertino/text_selection_toolbar_button.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ class _CupertinoTextSelectionToolbarButtonState extends State<CupertinoTextSelec
133133
color: isPressed
134134
? _kToolbarPressedColor.resolveFrom(context)
135135
: CupertinoColors.transparent,
136-
borderRadius: null,
137136
disabledColor: CupertinoColors.transparent,
138137
// This CupertinoButton does not actually handle the onPressed callback,
139138
// this is only here to correctly enable/disable the button (see

0 commit comments

Comments
 (0)