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