पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

GitHub रिपॉज़िटरीCretezy/flutter_cursor

flutter_cursor

Flutter Web के लिए कस्टम कर्सर समर्थन

flutter_cursor प्रोजेक्ट कवर
स्टार
5
फ़ोर्क
1
अंतिम पुश (UTC)
5 अग॰ 2020
प्रोजेक्ट स्थिति
आर्काइव

मूल 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.

भाषाएँDart

श्रेणियाँ

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम

अपने प्रोजेक्ट के लिए रिपॉज़िटरी कैसे चुनें?

उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।

  1. नाम, लेखक या विवरण से खोजें और तकनीकी विषय से परिणाम सीमित करें।
  2. स्टार, फ़ोर्क और हाल के पुश की तुलना करें। स्टार रुचि दर्शाते हैं, गुणवत्ता की गारंटी नहीं।
  3. उपयोग से पहले GitHub पर README, लाइसेंस और Issues जाँचें।

स्रोत और रखरखाव

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

GitHub Docs — About repositories ↗