flutter_glow_cursor 0.0.6
flutter_glow_cursor: ^0.0.6 copied to clipboard
A smooth glowing custom cursor with trailing animation for Flutter Web and Desktop and Mobile.
import 'package:flutter/material.dart';
import 'package:flutter_glow_cursor/flutter_glow_cursor.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
backgroundColor: Colors.blueGrey,
body: GlowCursor(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(Icons.flutter_dash, size: 80, color: Colors.cyan),
const SizedBox(height: 20),
const Text(
'Flutter Glow Cursor',
style: TextStyle(
fontSize: 32,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
const SizedBox(height: 12),
const Text(
'Move your mouse to see the glow effect',
style: TextStyle(color: Colors.white70, fontSize: 16),
),
const SizedBox(height: 32),
ElevatedButton(
onPressed: () {},
child: const Text('Hover Here'),
),
],
),
),
),
),
);
}
}