Apply dart fixes

This commit is contained in:
zontreck 2024-07-27 18:10:04 -07:00
parent 7a5502fbf9
commit 7accdcf246
5 changed files with 10 additions and 8 deletions

View file

@ -248,7 +248,7 @@ class EditorState extends State<Editor> {
didChangeState();
},
child: Icon(Icons.delete_forever))
child: const Icon(Icons.delete_forever))
],
),
);

View file

@ -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
return false;
} else
} else {
return false;
}
} else {
return false;
}
}

View file

@ -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++;
}

View file

@ -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++;
}

View file

@ -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++;
}