79444909

Date: 2025-02-17 09:17:40
Score: 1.5
Natty:
Report link

configuration looks good overall. If on the first load your website has /#/ or not, than I suggest you add this line of code:

void main() {
   WidgetsFlutterBinding.ensureInitialized();
   usePathUrlStrategy(); // <-- This line
   ...
   runApp(...);
}

to your main() function before runApp.

You also need to add

  flutter_web_plugins:
    sdk: flutter

to your dependencies and import it in the main.dart via

import 'package:flutter_web_plugins/url_strategy.dart';.

More infos here: https://docs.flutter.dev/ui/navigation/url-strategies

I hope this can fix your issue? =)

Reasons:
  • RegEx Blacklisted phrase (1.5): fix your issue?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: user26642758