custom_mouse_cursor
1.1.3, released 2 years ago by hiveright.tech
Custom mouse cursors for Flutter that are devicePixelRatio aware.
What it does
This package provides custom system mouse cursor support for Flutter. It allows creating cursors from asset images, Flutter icons, or raw ui.Image objects. The cursors automatically adjust for the system's devicePixelRatio and when moving between monitors with varying pixel ratios.
AI-written summary of version 1.1.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need custom mouse cursors for desktop or web applications.
- Your application handles multiple monitors with different device pixel ratios.
- You want to create cursors dynamically from Flutter icons or image assets.
Skip it when
- You only need standard built-in system mouse cursors.
- You are targeting platform versions where engine support or channels are restricted without required PRs.
Strengths
- Device pixel ratio aware and handles multi-monitor switching seamlessly.
- Trivial to create from images, icons, or ui.Image objects.
- Cached for good performance.
Weaknesses
- Some platform support (like Windows or Web) may require specific Flutter channels or custom engine PRs.
- Limited platform targets (macos, linux, windows, web).
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires adding the package and following platform-specific channel notes if using Windows or Web.
myCustomCursor = await CustomMouseCursor.asset('myCursorImage.png', hotX: 2, hotY: 2);Alternatives
Packages that do the same job and could replace custom_mouse_cursor.
- focusable_control_builder
Easily create custom controls that respond correctly to mouse and keyboard.
60Compare - vertical_scrollable_tabview
A Flutter widget that synchronizes a ScrollView and a custom tab view.
56Compare - custom_clippers
Provides custom clipper widgets for ClipPath to create various shapes.
54Compare - appinio_swiper
A customizable Tinder‑style card swiper for Flutter
50Compare
Works with
Packages commonly used together with custom_mouse_cursor: ones it builds on, ones built on it, and its own family.