fixed web link
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
import 'web_url_strategy_stub.dart'
|
||||
if (dart.library.html) 'web_url_strategy_web.dart';
|
||||
|
||||
// Web-specific URL strategy configuration
|
||||
void configureWebUrlStrategy() {
|
||||
if (kIsWeb) {
|
||||
setWebUrlStrategy();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// Stub implementation for non-web platforms
|
||||
void setWebUrlStrategy() {
|
||||
// No-op for non-web platforms
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
|
||||
|
||||
// Web-specific implementation
|
||||
void setWebUrlStrategy() {
|
||||
setUrlStrategy(PathUrlStrategy());
|
||||
}
|
||||
Reference in New Issue
Block a user