We can use plugin called url_strategy to remove hash(#) from flutter web app url. Let’s go ahead and install the plugin.
dependencies:
url_strategy: ^0.2.0
To remove it hash(#) from the url use it plugin function setPathUrlStrategy() from your main() function of your app.
import 'package:url_strategy/url_strategy.dart';
void main() {
// Here we set the URL strategy for our web app.
// It is safe to call this function when running on mobile or desktop as well.
setPathUrlStrategy();
runApp(MyApp());
}