fancy_cursor

pub package License GitHub code size in bytes

The custom cursor for your custom cursor areas. Simple widget yet super flexible custom cursor plugin.

Demo

Usage

Wrap the entire app or a widget with the FancyCursor()

import 'package:flutter/material.dart';
import 'package:fancy_cursor/fancy_cursor.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: FancyCursor(
        child: MyHomePage(),
      ),
    );
  }
}

Options

OptionTypeDefault
childWidget*required
trailbooleantrue
colorColorColors.black
sizedouble8
delayDurationconst Duration() - 0ms
curveCurveCurves.elasticOut
customCursorWidgetnull
trailColorColorColors.black.withOpacity(0.3)
trailSizedouble16
trailDelayDurationconst Duration(milliseconds: 500)
trailOpacityCurveCurves.elasticOut
trailCustomCursorWidgetnull

Contributing

Contributions, Issues, and feature requests are welcome! Feel free to check issues page.

Show your support

Give one ⭐️ if this project helped you!

Buy Me A Coffee

License

Copyright © 2021 Seshan K S.
This project is MIT licensed.


Made with 💚, From Seshan.

Libraries

fancy_cursor