flutter_cursor
Flutter용 사용자 정의 커서 지원(웹에서 호버용) 및 위젯
Flutter Web용 사용자 정의 커서 지원
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Flutter has integrated this package inside the core SDK! Update to Flutter 1.20+ and use MouseRegion!
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 pubspec.yaml:
dependencies:
flutter_cursor: ^0.1.3
See Flutter example for a full overview.
HoverCursorChanges 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"),
),
)
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.
Please file feature requests and bugs at the issue tracker.
의존성 목록 2 개
{"sdk":"flutter"}^1.2.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗