An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# animated_mouse_cursor

[![pub package](https://img.shields.io/pub/v/animated_mouse_cursor.svg)](https://pub.dartlang.org/packages/animated_mouse_cursor)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](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'),
),
);

```