flutter_cursor 0.1.3 copy "flutter_cursor: ^0.1.3" to clipboard
flutter_cursor: ^0.1.3 copied to clipboard

Custom cursor support for Flutter (for hovering on web) with widgets

example/flutter_cursor_example.dart

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

void main() => runApp(new CursorExample());

class CursorExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'flutter_cursor example',
      home: Scaffold(
        appBar: AppBar(
          title: Text('flutter_cursor example'),
        ),
        body: Column(
          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
          children: <Widget>[
            Center(
              child: HoverCursor(
                cursor: Cursor.move,
                child: RaisedButton(
                  child: Text("Move Cursor"),
                  onPressed: () {},
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
21
likes
40
pub points
35%
popularity

Publisher

verified publishercretezy.com

Custom cursor support for Flutter (for hovering on web) with widgets

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, universal_html

More

Packages that depend on flutter_cursor