SystemMouseCursors Widget
Project Preview
- Interested in seeing the live demo? Click here to explore.
- Want to view the source code? Visit the project on GitHub.
Code Snippet
import 'package:flutter/material.dart';
class SystemMouseCursorsWidget extends StatelessWidget {
const SystemMouseCursorsWidget({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("SystemMouseCursors Widget"),
),
body: Center(
child: MouseRegion(
cursor: SystemMouseCursors.grab,
child: Container(
width: 200,
height: 100,
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Colors.orangeAccent,
),
),
),
),
);
}
}