https://github.com/bijithpn/animated_mouse_cursor
A package for creating beautiful custom mouse cursor on flutter web
https://github.com/bijithpn/animated_mouse_cursor
custom-cursor flutter flutter-package flutter-web
Last synced: about 1 month ago
JSON representation
A package for creating beautiful custom mouse cursor on flutter web
- Host: GitHub
- URL: https://github.com/bijithpn/animated_mouse_cursor
- Owner: bijithpn
- License: mit
- Created: 2024-02-05T17:33:22.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-18T18:49:21.000Z (over 2 years ago)
- Last Synced: 2025-01-24T05:42:19.592Z (over 1 year ago)
- Topics: custom-cursor, flutter, flutter-package, flutter-web
- Language: Dart
- Homepage: https://pub.dev/packages/animated_mouse_cursor
- Size: 5.32 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# animated_mouse_cursor
[](https://pub.dartlang.org/packages/animated_mouse_cursor)
[](https://opensource.org/licenses/MIT)
This Flutter package create beautiful custom mouse cursor on flutter web
### Demo
## Installation
Add this to your `pubspec.yaml` file:
```yaml
dependencies:
animated_mouse_cursor:
```
or
```shell
flutter pub add animated_mouse_cursor
```
## Implementation
Import the package in your Dart file:
```yaml
import 'package:animated_mouse_cursor/animated_mouse_cursor.dart';
```
## Usage
The AnimatedCursor widget allows you to create a defualt cursor for your mouse you can wrap this widget in `MaterialApp` or a single `Widget`.
```dart
MaterialApp(
title: 'Animated Cursor Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: AnimatedMouseCursor(
child: const MyHomePage(title: 'Animated Cursor Demo'),
),
);
```