flutter_cursor 0.1.3

Flutter Android iOS web

Custom cursor support for Flutter (for hovering on web) with widgets

flutter_cursor pub package #

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.

Pub - API Docs - GitHub

Install #

Install by adding this package to your pubspec.yaml:

dependencies:
  flutter_cursor: ^0.1.3

Usage #

See Flutter example for a full overview.

HoverCursor #

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"),
    ),
)

Cursors #

The Cursor enum has all the possible CSS cursor values.

You may also pass a customCursor argument to set a custom cursor (such as a URL), this will be passed directly to cursor.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

12
likes
110
pub points
78%
popularity

Publisher

cretezy.com

Custom cursor support for Flutter (for hovering on web) with widgets

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, universal_html

More

Packages that depend on flutter_cursor