-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Description
Hi, I'm using the following code to display the cursor in my web flutter applications:
extension HoverExtensions on Widget {
// Get a regerence to the body of the view
static final appContainer = html.window.document.getElementById('app-container');
Widget get showCursorOnHover {
return MouseRegion(
child: this,
// When the mouse enters the widget set the cursor to pointer
onHover: (event) {
appContainer.style.cursor = 'pointer';
},
// When it exits set it back to default
onExit: (event) {
appContainer.style.cursor = 'default';
},
);
}
}
In previous versions it was displayed correctly using the following modifier in the widget:
placeHolder(4).showCursorOnHover,
Just like that: https://ibb.co/z6VzJLV
But in the last version in the master channel the pointer is not seen: https://ibb.co/dbhVxnS
Interestingly enough, you can only see it when used in a Raised Button Widget, in any other Widget it doesn't work. It used to work on any Widget.
See: https://ibb.co/RgkTkSB
Flutter Doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 1.19.0-2.0.pre.195, on Microsoft Windows [Versión 10.0.18363.836], locale es-CO)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.4.0)
[√] Android Studio (version 3.6)
[√] VS Code (version 1.45.1)
[√] Connected device (3 available)
• No issues found!
Metadata
Metadata
Assignees
Labels
No labels