File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ import 'package:flutter/material.dart';
33import 'package:google_fonts/google_fonts.dart' ;
44
55import 'presentation/router/app_router.dart' ;
6- import 'package:flutter_web_plugins/flutter_web_plugins.dart' ;
6+
7+ import 'package:fl_chart_app/util/web/non_web_url_strategy.dart'
8+ if (dart.library.html) 'package:fl_chart_app/util/web/web_url_strategy.dart' ;
79
810void main () {
9- usePathUrlStrategy ();
11+ configureWebUrl ();
1012 runApp (const MyApp ());
1113}
1214
Original file line number Diff line number Diff line change 1+ void configureWebUrl () {
2+ // No-op.
3+ }
Original file line number Diff line number Diff line change 1+ import 'package:flutter_web_plugins/flutter_web_plugins.dart' ;
2+
3+ void configureWebUrl () {
4+ setUrlStrategy (PathUrlStrategy ());
5+ }
You can’t perform that action at this time.
0 commit comments