[Setup] Added build.yaml and check.yaml (#1)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2024-09-21 11:59:28 +02:00 committed by GitHub
parent 226686eb18
commit 7b3e733b76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
112 changed files with 3926 additions and 3784 deletions

View file

@ -46,7 +46,7 @@ class _EditGeneralState extends ConsumerState<EditFields> {
children: [
Flexible(
child: ListView(
padding: EdgeInsets.symmetric(horizontal: 16),
padding: const EdgeInsets.symmetric(horizontal: 16),
shrinkWrap: true,
children: [
if (widget.json != null)
@ -64,7 +64,7 @@ class _EditGeneralState extends ConsumerState<EditFields> {
current: map.entries.firstWhereOrNull((element) => element.value == true)?.key ?? "",
itemBuilder: (context) => [
PopupMenuItem(
child: Text(""),
child: const Text(""),
onTap: () => ref.read(editItemProvider.notifier).updateField(MapEntry(e.key, "")),
),
...map.entries.map(
@ -119,7 +119,7 @@ class _EditGeneralState extends ConsumerState<EditFields> {
onPressed: () => ref.read(editItemProvider.notifier).updateField(
MapEntry(e.key, list..remove(genre)),
),
icon: Icon(Icons.remove_rounded))
icon: const Icon(Icons.remove_rounded))
],
),
),
@ -217,7 +217,7 @@ class _EditGeneralState extends ConsumerState<EditFields> {
ref.read(editItemProvider.notifier).updateField(
MapEntry(e.key, listToMap(list..remove(person))));
},
icon: Icon(Icons.remove_rounded))
icon: const Icon(Icons.remove_rounded))
],
),
),
@ -272,7 +272,7 @@ class _EditGeneralState extends ConsumerState<EditFields> {
personRole.text = "";
});
},
icon: Icon(Icons.add_rounded),
icon: const Icon(Icons.add_rounded),
)
],
),
@ -326,7 +326,7 @@ class _EditGeneralState extends ConsumerState<EditFields> {
message: "Open in browser",
child: IconButton(
onPressed: () => launchUrl(context, externalUrl.url),
icon: Icon(Icons.open_in_browser_rounded)),
icon: const Icon(Icons.open_in_browser_rounded)),
),
IconButton(
onPressed: () {
@ -338,7 +338,7 @@ class _EditGeneralState extends ConsumerState<EditFields> {
.toList()),
);
},
icon: Icon(Icons.remove_rounded))
icon: const Icon(Icons.remove_rounded))
],
),
),
@ -371,7 +371,7 @@ class _EditGeneralState extends ConsumerState<EditFields> {
.toList()),
);
},
icon: Icon(Icons.add_rounded),
icon: const Icon(Icons.add_rounded),
)
],
),
@ -429,7 +429,7 @@ class _EditGeneralState extends ConsumerState<EditFields> {
const Spacer(),
IconButton(
onPressed: () => setMapping(list..remove(studio)),
icon: Icon(Icons.remove_rounded))
icon: const Icon(Icons.remove_rounded))
],
),
),
@ -557,7 +557,7 @@ class _EditGeneralState extends ConsumerState<EditFields> {
.read(editItemProvider.notifier)
.updateField(MapEntry(e.key, newDate.toIso8601String()));
},
icon: Icon(IconsaxOutline.calendar_2))
icon: const Icon(IconsaxOutline.calendar_2))
],
),
DisplayOrder _ => Builder(builder: (context) {
@ -580,8 +580,8 @@ class _EditGeneralState extends ConsumerState<EditFields> {
.toList(),
),
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 12),
const Padding(
padding: EdgeInsets.symmetric(horizontal: 12),
child: Text("Order episodes by air date, DVD order, or absolute numbering."),
)
],
@ -656,7 +656,7 @@ class _EditGeneralState extends ConsumerState<EditFields> {
children: [
Text(keyLabel, style: Theme.of(context).textTheme.titleLarge),
const SizedBox(height: 6),
Text(
const Text(
"Uncheck a field to lock it and prevent its data from being changed.",
),
const SizedBox(height: 6),
@ -722,8 +722,8 @@ class _EditGeneralState extends ConsumerState<EditFields> {
},
)
else
Padding(
padding: const EdgeInsets.all(8.0),
const Padding(
padding: EdgeInsets.all(8.0),
child: Center(
child: CircularProgressIndicator.adaptive(strokeCap: StrokeCap.round),
),

View file

@ -105,7 +105,7 @@ class _EditImageContentState extends ConsumerState<EditImageContent> {
Align(
alignment: Alignment.bottomRight,
child: Transform.translate(
offset: Offset(2, 2),
offset: const Offset(2, 2),
child: IconButton.filledTonal(
style: FilledButton.styleFrom(
backgroundColor: Theme.of(context).colorScheme.error,
@ -115,10 +115,10 @@ class _EditImageContentState extends ConsumerState<EditImageContent> {
await showDialog(
context: context,
builder: (context) => AlertDialog.adaptive(
title: Text("Delete image"),
content: Text("Deleting is permanent are you sure?"),
title: const Text("Delete image"),
content: const Text("Deleting is permanent are you sure?"),
actions: [
ElevatedButton(onPressed: () => Navigator.of(context).pop(), child: Text("Cancel")),
ElevatedButton(onPressed: () => Navigator.of(context).pop(), child: const Text("Cancel")),
FilledButton(
style: FilledButton.styleFrom(
backgroundColor: Theme.of(context).colorScheme.error,
@ -128,7 +128,7 @@ class _EditImageContentState extends ConsumerState<EditImageContent> {
await ref.read(editItemProvider.notifier).deleteImage(widget.type, image);
Navigator.of(context).pop();
},
child: Text(
child: const Text(
"Delete",
),
)
@ -136,7 +136,7 @@ class _EditImageContentState extends ConsumerState<EditImageContent> {
),
);
},
icon: Icon(Icons.delete_rounded),
icon: const Icon(Icons.delete_rounded),
),
),
)
@ -208,7 +208,7 @@ class _EditImageContentState extends ConsumerState<EditImageContent> {
),
),
SettingsListTile(
label: Text("Include all languages"),
label: const Text("Include all languages"),
trailing: Switch.adaptive(
value: includeAllImages,
onChanged: (value) {
@ -231,7 +231,7 @@ class _EditImageContentState extends ConsumerState<EditImageContent> {
),
children: [...serverImageCards, ...imageCards],
),
if (loading) Center(child: CircularProgressIndicator.adaptive(strokeCap: StrokeCap.round)),
if (loading) const Center(child: CircularProgressIndicator.adaptive(strokeCap: StrokeCap.round)),
if (!loading && [...serverImageCards, ...imageCards].isEmpty)
Center(child: Text("No ${widget.type.value}s found"))
],