Alot of changes
This commit is contained in:
15
lib/utils/web_workarrounds.dart
Normal file
15
lib/utils/web_workarrounds.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
String WW_AssetSource(String location) {
|
||||
if (kIsWeb) {
|
||||
|
||||
// remove the first character if it is a '/'
|
||||
if (location.startsWith('/')) {
|
||||
location = location.substring(1);
|
||||
}
|
||||
|
||||
return "assets/$location";
|
||||
}
|
||||
return location;
|
||||
}
|
||||
Reference in New Issue
Block a user