Search packages, repositories and app categories

Package detailsv0.1.3

flutter_cursor

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

30-day downloads
39
Likes
21
Pub points
40

Install package

flutter pub add flutter_cursor

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Flutter Cursor is a package that enables custom cursor support for Flutter applications on the web, allowing developers to create interactive hover effects using specialized widgets. It enhances user experience by providing visual feedback during mouse interactions, particularly useful for web-based interfaces. The package integrates seamlessly with Flutter's widget system and supports customization of cursor appearance and behavior. Ideal for creating engaging, responsive web experiences with dynamic cursor interactions.

Use cases

  • Interactive web UIs
  • Hover-based navigation
  • Custom cursor animations
  • Gamified interfaces
  • Enhanced user feedback
  • Web-specific design elements

Key features

  • Custom cursor widgets
  • Web-only hover support
  • Easy integration with Flutter
  • Configurable cursor appearance
  • Supports pointer events
  • Lightweight and modular

Suitable for

  • Web developers using Flutter
  • Designers seeking interactive elements
  • Apps requiring hover feedback
  • Educational or gaming apps
  • UI-focused web applications

Considerations

  • Only works on web platform
  • May impact performance with complex cursors
  • Requires careful handling of pointer events
  • Limited to mouse-based interactions
  • Not suitable for mobile apps

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_cursor pub package

Important Note

Flutter has integrated this package inside the core SDK! Update to Flutter 1.20+ and use MouseRegion!

Original

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.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.