This reverts commit d278808014.
This commit is contained in:
@@ -751,7 +751,7 @@ class TooltipState extends State<Tooltip> with SingleTickerProviderStateMixin {
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onLongPress: (_triggerMode == TooltipTriggerMode.longPress) ? _handlePress : null,
|
||||
onTap: (_triggerMode == TooltipTriggerMode.tap) ? _handleTap : null,
|
||||
excludeFromSemantics: _excludeFromSemantics,
|
||||
excludeFromSemantics: true,
|
||||
child: result,
|
||||
);
|
||||
// Only check for hovering if there is a mouse connected.
|
||||
|
||||
@@ -172,7 +172,6 @@ void main() {
|
||||
hasEnabledState: true,
|
||||
isEnabled: true,
|
||||
hasTapAction: true,
|
||||
hasLongPressAction: true,
|
||||
isFocusable: true,
|
||||
));
|
||||
handle.dispose();
|
||||
@@ -217,7 +216,6 @@ void main() {
|
||||
hasEnabledState: true,
|
||||
isEnabled: true,
|
||||
hasTapAction: true,
|
||||
hasLongPressAction: true,
|
||||
isFocusable: true,
|
||||
));
|
||||
handle.dispose();
|
||||
|
||||
@@ -672,7 +672,6 @@ void main() {
|
||||
tooltip: 'Previous month',
|
||||
isButton: true,
|
||||
hasTapAction: true,
|
||||
hasLongPressAction: true,
|
||||
isEnabled: true,
|
||||
hasEnabledState: true,
|
||||
isFocusable: true,
|
||||
@@ -681,7 +680,6 @@ void main() {
|
||||
tooltip: 'Next month',
|
||||
isButton: true,
|
||||
hasTapAction: true,
|
||||
hasLongPressAction: true,
|
||||
isEnabled: true,
|
||||
hasEnabledState: true,
|
||||
isFocusable: true,
|
||||
|
||||
@@ -2047,10 +2047,7 @@ void main() {
|
||||
children: <TestSemantics>[
|
||||
TestSemantics(
|
||||
tooltip: 'Delete',
|
||||
actions: <SemanticsAction>[
|
||||
SemanticsAction.tap,
|
||||
SemanticsAction.longPress
|
||||
],
|
||||
actions: <SemanticsAction>[SemanticsAction.tap],
|
||||
textDirection: TextDirection.ltr,
|
||||
flags: <SemanticsFlag>[
|
||||
SemanticsFlag.isButton,
|
||||
|
||||
@@ -833,7 +833,6 @@ void main() {
|
||||
tooltip: 'Switch to input',
|
||||
isButton: true,
|
||||
hasTapAction: true,
|
||||
hasLongPressAction: true,
|
||||
isEnabled: true,
|
||||
hasEnabledState: true,
|
||||
isFocusable: true,
|
||||
@@ -877,7 +876,6 @@ void main() {
|
||||
tooltip: 'Switch to calendar',
|
||||
isButton: true,
|
||||
hasTapAction: true,
|
||||
hasLongPressAction: true,
|
||||
isEnabled: true,
|
||||
hasEnabledState: true,
|
||||
isFocusable: true,
|
||||
|
||||
@@ -700,7 +700,6 @@ void main() {
|
||||
tooltip: 'Add Photo',
|
||||
actions: <SemanticsAction>[
|
||||
SemanticsAction.tap,
|
||||
SemanticsAction.longPress,
|
||||
],
|
||||
flags: <SemanticsFlag>[
|
||||
SemanticsFlag.hasEnabledState,
|
||||
|
||||
@@ -620,10 +620,7 @@ void main() {
|
||||
SemanticsFlag.isEnabled,
|
||||
SemanticsFlag.isFocusable,
|
||||
],
|
||||
actions: <SemanticsAction>[
|
||||
SemanticsAction.tap,
|
||||
SemanticsAction.longPress,
|
||||
],
|
||||
actions: <SemanticsAction>[SemanticsAction.tap],
|
||||
tooltip: 'Back',
|
||||
textDirection: TextDirection.ltr,
|
||||
),
|
||||
|
||||
@@ -1416,9 +1416,6 @@ void main() {
|
||||
id: 1,
|
||||
tooltip: 'TIP',
|
||||
textDirection: TextDirection.ltr,
|
||||
actions: <SemanticsAction>[
|
||||
SemanticsAction.longPress,
|
||||
],
|
||||
),
|
||||
],
|
||||
);
|
||||
@@ -1619,9 +1616,6 @@ void main() {
|
||||
tooltip: 'Foo',
|
||||
label: 'Bar',
|
||||
textDirection: TextDirection.ltr,
|
||||
actions: <SemanticsAction>[
|
||||
SemanticsAction.longPress,
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -1075,9 +1075,6 @@ void main() {
|
||||
tooltip: 'Foo',
|
||||
label: 'Bar',
|
||||
textDirection: TextDirection.ltr,
|
||||
actions: <SemanticsAction>[
|
||||
SemanticsAction.longPress,
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -1121,9 +1118,6 @@ void main() {
|
||||
tooltip: 'Foo',
|
||||
label: 'Bar',
|
||||
textDirection: TextDirection.ltr,
|
||||
actions: <SemanticsAction>[
|
||||
SemanticsAction.longPress,
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user