FLUTTER ECOSYSTEM

Cretezy/flutter_cursor

Benutzerdefinierte Cursor-Unterstützung für Flutter Web

Projektcover von flutter_cursor
Stars
5
Forks
1
Letzter Push (UTC)
05.08.2020
Projektstatus
Archiviert
Cretezy GitHub avatar
GITHUB User

Cretezy ↗

Hi, I'm Cretezy, a software developer. I write open-source software, articles, and make YouTube videos.

@ServiceTitanCanadaOffizielle Website ↗
SprachenDart

Technische Themen

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 2 Einträge

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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

https://i.imgur.com/3taZC6C.png

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.