搜尋套件、儲存庫與 APP 分類

GitHub 儲存庫Cretezy/flutter_cursor

flutter_cursor

Flutter Web 的自定義游標支援

flutter_cursor 專案封面
星標
5
分支
1
最近推送(UTC)
2020年8月5日
專案狀態
已封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

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.

Cretezy GitHub avatar
GitHub 作者

Cretezy ↗

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

@ServiceTitanCanada官方網站 ↗
語言Dart

分類

此儲存庫發佈的套件

使用的依賴

依賴清單 2 項

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗