mirror of
https://github.com/zontreck/NBTEditor
synced 2024-11-21 05:25:54 -07:00
Apply dart fixes
This commit is contained in:
parent
7a5502fbf9
commit
7accdcf246
5 changed files with 10 additions and 8 deletions
|
@ -248,7 +248,7 @@ class EditorState extends State<Editor> {
|
|||
|
||||
didChangeState();
|
||||
},
|
||||
child: Icon(Icons.delete_forever))
|
||||
child: const Icon(Icons.delete_forever))
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
|
@ -8,11 +8,11 @@ import 'package:nbteditor/pages/permsrequired.dart';
|
|||
import 'package:permission_handler/permission_handler.dart';
|
||||
|
||||
void main() async {
|
||||
runApp(MainApp());
|
||||
runApp(const MainApp());
|
||||
}
|
||||
|
||||
class MainApp extends StatelessWidget {
|
||||
MainApp({
|
||||
const MainApp({
|
||||
super.key,
|
||||
});
|
||||
|
||||
|
@ -38,8 +38,10 @@ Future<bool> needsPermissionsPage() async {
|
|||
if (needsPermissions()) {
|
||||
if (await Permission.manageExternalStorage.isDenied) {
|
||||
return true;
|
||||
} else
|
||||
} else {
|
||||
return false;
|
||||
} else
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ extension ByteArrayTagExt on ByteArrayTag {
|
|||
entries.add(Node(
|
||||
key: "$path/$count",
|
||||
label: "$element",
|
||||
data: ArrayEntry(value: "${element}", parent: this, index: count)));
|
||||
data: ArrayEntry(value: "$element", parent: this, index: count)));
|
||||
count++;
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ extension IntArrayTagExt on IntArrayTag {
|
|||
entries.add(Node(
|
||||
key: "$path/$count",
|
||||
label: "$element",
|
||||
data: ArrayEntry(value: "${element}", parent: this, index: count)));
|
||||
data: ArrayEntry(value: "$element", parent: this, index: count)));
|
||||
count++;
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ extension LongArrayTagExt on LongArrayTag {
|
|||
entries.add(Node(
|
||||
key: "$path/$count",
|
||||
label: "$element",
|
||||
data: ArrayEntry(value: "${element}", parent: this, index: count)));
|
||||
data: ArrayEntry(value: "$element", parent: this, index: count)));
|
||||
count++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue