mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
[Setup] Added build.yaml and check.yaml (#1)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
226686eb18
commit
7b3e733b76
112 changed files with 3926 additions and 3784 deletions
|
|
@ -28,7 +28,7 @@ Future<ItemBaseModel?> showEditItemPopup(
|
|||
);
|
||||
return AdaptiveLayout.of(context).inputDevice == InputDevice.pointer
|
||||
? Dialog(
|
||||
insetPadding: EdgeInsets.all(64),
|
||||
insetPadding: const EdgeInsets.all(64),
|
||||
child: editWidget(),
|
||||
)
|
||||
: Dialog.fullscreen(
|
||||
|
|
@ -75,11 +75,11 @@ class _EditDialogSwitcherState extends ConsumerState<EditDialogSwitcher> with Ti
|
|||
final advancedFields = ref.watch(editItemProvider.notifier).advancedFields ?? {};
|
||||
|
||||
Map<Tab, Widget> widgets = {
|
||||
Tab(text: "General"): EditFields(fields: generalFields, json: state),
|
||||
Tab(text: "Primary"): EditImageContent(type: ImageType.primary),
|
||||
Tab(text: "Logo"): EditImageContent(type: ImageType.logo),
|
||||
Tab(text: "Backdrops"): EditImageContent(type: ImageType.backdrop),
|
||||
Tab(text: "Advanced"): EditFields(fields: advancedFields, json: state),
|
||||
const Tab(text: "General"): EditFields(fields: generalFields, json: state),
|
||||
const Tab(text: "Primary"): const EditImageContent(type: ImageType.primary),
|
||||
const Tab(text: "Logo"): const EditImageContent(type: ImageType.logo),
|
||||
const Tab(text: "Backdrops"): const EditImageContent(type: ImageType.backdrop),
|
||||
const Tab(text: "Advanced"): EditFields(fields: advancedFields, json: state),
|
||||
};
|
||||
|
||||
return Card(
|
||||
|
|
@ -103,7 +103,7 @@ class _EditDialogSwitcherState extends ConsumerState<EditDialogSwitcher> with Ti
|
|||
style: Theme.of(context).textTheme.titleLarge,
|
||||
),
|
||||
),
|
||||
IconButton(onPressed: () => refreshEditor(), icon: Icon(IconsaxOutline.refresh))
|
||||
IconButton(onPressed: () => refreshEditor(), icon: const Icon(IconsaxOutline.refresh))
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
],
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ class _IdentifyScreenState extends ConsumerState<IdentifyScreen> with TickerProv
|
|||
const Spacer(),
|
||||
IconButton(
|
||||
onPressed: () async => await ref.read(provider.notifier).fetchInformation(),
|
||||
icon: Icon(IconsaxOutline.refresh)),
|
||||
icon: const Icon(IconsaxOutline.refresh)),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
@ -106,7 +106,7 @@ class _IdentifyScreenState extends ConsumerState<IdentifyScreen> with TickerProv
|
|||
if (posters.isEmpty)
|
||||
Center(
|
||||
child: processing
|
||||
? CircularProgressIndicator.adaptive(strokeCap: StrokeCap.round)
|
||||
? const CircularProgressIndicator.adaptive(strokeCap: StrokeCap.round)
|
||||
: Text(context.localized.noResults),
|
||||
)
|
||||
else
|
||||
|
|
@ -181,7 +181,7 @@ class _IdentifyScreenState extends ConsumerState<IdentifyScreen> with TickerProv
|
|||
|
||||
launchUrl(context, url ?? "");
|
||||
},
|
||||
icon: Icon(Icons.launch_rounded)),
|
||||
icon: const Icon(Icons.launch_rounded)),
|
||||
),
|
||||
Tooltip(
|
||||
message: "Select result",
|
||||
|
|
@ -202,7 +202,7 @@ class _IdentifyScreenState extends ConsumerState<IdentifyScreen> with TickerProv
|
|||
Navigator.of(context).pop();
|
||||
}
|
||||
: null,
|
||||
icon: Icon(Icons.save_alt_rounded),
|
||||
icon: const Icon(Icons.save_alt_rounded),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ class ItemInfoScreenState extends ConsumerState<ItemInfoScreen> {
|
|||
style: Theme.of(context).textTheme.titleLarge,
|
||||
),
|
||||
),
|
||||
Opacity(opacity: 0.3, child: const Divider()),
|
||||
const Opacity(opacity: 0.3, child: Divider()),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Row(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue