Skip to content

Commit 3351080

Browse files
committed
FIX: asset import error
1 parent cb2723f commit 3351080

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/vars/global.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class Global with ChangeNotifier {
162162

163163
Future<void> loadEggs() async {
164164
if(settingData['eggs']['stella']){
165-
final rawString = await rootBundle.loadString("assets\\eggs\\s.txt");
165+
final rawString = await rootBundle.loadString("assets/eggs/s.txt");
166166
stella = base64Decode(rawString.replaceAll('\n', '').replaceAll('\r', '').trim());
167167
}
168168
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ flutter:
8282
# To add assets to your application, add an assets section, like this:
8383
assets:
8484
- CHANGELOG.md
85-
- assets\eggs\s.txt
85+
- assets/eggs/s.txt
8686

8787
# An image asset can refer to one or more resolution-specific "variants", see
8888
# https://flutter.dev/to/resolution-aware-images

0 commit comments

Comments
 (0)