0

I used url_strategy in flutter web channel stable and beta.

I run flutter web in Landscape its work (image 1)

but when I changed Dimensions to Samsung or motog4 or iphone 5s does not work.(image 2),

this is my code:


import 'package:url_strategy/url_strategy.dart';

void main() {

  // Here we set the URL strategy for our web app.

  setPathUrlStrategy();

  runApp(MyApp());

}

Image 1
image 1

Image 2
image 2

Peter Haddad
  • 78,874
  • 25
  • 140
  • 134
M.r Dude
  • 11
  • 1
  • 3
  • Maybe this answer can help you https://stackoverflow.com/a/65709246/14729495 – Franz Aug 30 '22 at 15:03
  • Thanks Franz I saw this stackoverflow.com/a/65709246/14729495. url_strategy work on web and some phone but when change Dimensions to some phone does not work. – M.r Dude Aug 30 '22 at 15:08

1 Answers1

1

This error occurred because of index.html was old. I just delete old web folder and create new web folder .

run below code in terminal and create new web folder with new index.html

flutter create .
M.r Dude
  • 11
  • 1
  • 3