Flutter-Web: Mouse hover -> Change cursor to pointer

I had difficulties finding documentation on the now built-in support. Here is what helped me: https://github.com/flutter/flutter/issues/58260 And this did the trick for me, without changing index.html etc. MouseRegion( cursor: SystemMouseCursors.click, child: GestureDetector( child: Icon( Icons.add_comment, size: 20, ), onTap: () {}, ), ), Also see the official documentation: https://api.flutter.dev/flutter/rendering/MouseCursor-class.html Widget build(BuildContext context) { return Center( … Read more

How to remove hash (#) from URL in Flutter web

You can now use a simple package and a single line of code to remove the leading hash (#) from your Flutter web app: url_strategy (full disclosure: I am the author) Using url_strategy You simply add the dependency as described here and then add the following function call to your main function: import ‘package:url_strategy/url_strategy.dart’; void … Read more