7/27/2023 0 Comments Custom mouse cursor png![]() All work is cached so switching between monitors of varying devicePixelRatio's is seemless. The live example was been compiled with a local version of the engine with PR#41186.ĬustomMouseCursor's can be created directly from any flutter image asset as well as flutter icons (just as you would with Flutter Icon).įor power users Flutter's ui.Image objects can also be used (allowing for anything you might dream up, even animated cursor's).ĬustomMouseCursors are very performant. IconCursor = await CustomMouseCursor.icon( Icons.redo, size: 24, hotX: 22, hotY: 17 ) Ī LIVE flutter web example can be found here # (at ) # M圜ustomCursor = await CustomMouseCursor.asset('m圜ursorImage.png', hotX:2, hotY:2 ) They are trivial to create from any flutter icon or from image assets. ![]() Simply create CustomMouseCursor's objects and use them in the same way you would use SystemMouseCursors. The custom mouse cursors are native system cursors which are devicePixelRatio aware so they will remanin the proper size on different devicePixelRatio's and on machines with multiple monitors with varying devicePixelRatios. ![]() This package provides custom system mouse cursor support for Flutter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |