Custom cursor support for Flutter (for hovering on web) with widgets
Custom cursor support for Flutter Web.
Wrap your widgets with
HoverCursor and pass a cursor, and it will be updated when entering/leaving the hover zone.
Install by adding this package to your
dependencies: flutter_cursor: ^0.1.3
See Flutter example for a full overview.
Changes cursor when entering/leaving the widget's hover zone on the web. This is safe to add on mobile (will have no effect).
import 'package:flutter_cursor/flutter_cursor.dart'; HoverCursor( cursor: Cursor.move, child: RaisedButton( child: Text("Move Cursor"), ), )
Cursor enum has all the possible CSS
You may also pass a
customCursor argument to set a custom cursor (such as a URL), this will be passed directly to
Features and bugs #
Please file feature requests and bugs at the issue tracker.