HashLocationStrategy
that hooks up Flutter's Navigator
to the URL. There are still bugs and missing features (e.g. we don't have "go forward" functionality; we didn't bother implementing in Flutter because mobile apps don't have such a thing). You should be able to link deep into your app, as well as use the "back" button. However, in general, this remains an area of development.
import 'package:flutter_web_ui/ui.dart' as ui;
import 'package:flutter_web_ui/src/engine.dart' as engine;
import 'package:flutter_gallery/main.dart' as app;
main() async {
await ui.webOnlyInitializePlatform();
engine.window.webOnlyLocationStrategy = const engine.HashLocationStrategy();
app.main();
}