mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 15:08:18 -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
|
|
@ -183,9 +183,9 @@ class _AdaptiveLayoutBuilderState extends ConsumerState<AdaptiveLayoutBuilder> {
|
|||
isDesktop: isDesktop,
|
||||
router: router,
|
||||
posterDefaults: switch (layout) {
|
||||
LayoutState.phone => PosterDefaults(size: 300, ratio: 0.55),
|
||||
LayoutState.tablet => PosterDefaults(size: 350, ratio: 0.55),
|
||||
LayoutState.desktop => PosterDefaults(size: 400, ratio: 0.55),
|
||||
LayoutState.phone => const PosterDefaults(size: 300, ratio: 0.55),
|
||||
LayoutState.tablet => const PosterDefaults(size: 350, ratio: 0.55),
|
||||
LayoutState.desktop => const PosterDefaults(size: 400, ratio: 0.55),
|
||||
},
|
||||
child: widget.child,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class FloatingActionButtonAnimated extends ConsumerWidget {
|
|||
onPressed: onPressed,
|
||||
foregroundColor: alternate ? Theme.of(context).colorScheme.onSecondary : null,
|
||||
backgroundColor: alternate ? Theme.of(context).colorScheme.secondary : null,
|
||||
extendedPadding: EdgeInsets.all(14),
|
||||
extendedPadding: const EdgeInsets.all(14),
|
||||
label: AnimatedSize(
|
||||
duration: const Duration(milliseconds: 250),
|
||||
child: isExtended
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
if (playAble)
|
||||
ItemActionButton(
|
||||
action: () => play(context, ref),
|
||||
icon: Icon(IconsaxOutline.play),
|
||||
icon: const Icon(IconsaxOutline.play),
|
||||
label: Text(playButtonLabel(context)),
|
||||
),
|
||||
if (parentId?.isNotEmpty == true) ...[
|
||||
|
|
@ -99,7 +99,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
if (!galleryItem && !exclude.contains(ItemActions.details))
|
||||
ItemActionButton(
|
||||
action: () async => await navigateTo(context),
|
||||
icon: Icon(IconsaxOutline.main_component),
|
||||
icon: const Icon(IconsaxOutline.main_component),
|
||||
label: Text(context.localized.showDetails),
|
||||
)
|
||||
else if (!exclude.contains(ItemActions.showAlbum) && galleryItem)
|
||||
|
|
@ -111,7 +111,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
if (!exclude.contains(ItemActions.playFromStart))
|
||||
if ((userData.progress) > 0)
|
||||
ItemActionButton(
|
||||
icon: Icon(IconsaxOutline.refresh),
|
||||
icon: const Icon(IconsaxOutline.refresh),
|
||||
action: (this is BookModel)
|
||||
? () => ((this as BookModel).play(context, ref, currentPage: 0))
|
||||
: () => play(context, ref, startPosition: Duration.zero),
|
||||
|
|
@ -123,7 +123,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
if (!exclude.contains(ItemActions.addCollection))
|
||||
if (type != FladderItemType.boxset)
|
||||
ItemActionButton(
|
||||
icon: Icon(IconsaxOutline.archive_add),
|
||||
icon: const Icon(IconsaxOutline.archive_add),
|
||||
action: () async {
|
||||
await addItemToCollection(context, [this]);
|
||||
if (context.mounted) {
|
||||
|
|
@ -135,7 +135,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
if (!exclude.contains(ItemActions.addPlaylist))
|
||||
if (type != FladderItemType.playlist)
|
||||
ItemActionButton(
|
||||
icon: Icon(IconsaxOutline.archive_add),
|
||||
icon: const Icon(IconsaxOutline.archive_add),
|
||||
action: () async {
|
||||
await addItemToPlaylist(context, [this]);
|
||||
if (context.mounted) {
|
||||
|
|
@ -146,7 +146,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
),
|
||||
if (!exclude.contains(ItemActions.markPlayed))
|
||||
ItemActionButton(
|
||||
icon: Icon(IconsaxOutline.eye),
|
||||
icon: const Icon(IconsaxOutline.eye),
|
||||
action: () async {
|
||||
final userData = await ref.read(userProvider.notifier).markAsPlayed(true, id);
|
||||
onUserDataChanged?.call(userData?.bodyOrThrow);
|
||||
|
|
@ -156,7 +156,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
),
|
||||
if (!exclude.contains(ItemActions.markUnplayed))
|
||||
ItemActionButton(
|
||||
icon: Icon(IconsaxOutline.eye_slash),
|
||||
icon: const Icon(IconsaxOutline.eye_slash),
|
||||
label: Text(context.localized.markAsUnwatched),
|
||||
action: () async {
|
||||
final userData = await ref.read(userProvider.notifier).markAsPlayed(false, id);
|
||||
|
|
@ -178,7 +178,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
ItemActionDivider(),
|
||||
if (!exclude.contains(ItemActions.editMetaData) && isAdmin)
|
||||
ItemActionButton(
|
||||
icon: Icon(IconsaxOutline.edit),
|
||||
icon: const Icon(IconsaxOutline.edit),
|
||||
action: () async {
|
||||
final newItem = await showEditItemPopup(context, id);
|
||||
if (newItem != null) {
|
||||
|
|
@ -189,7 +189,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
),
|
||||
if (!exclude.contains(ItemActions.refreshMetaData) && isAdmin)
|
||||
ItemActionButton(
|
||||
icon: Icon(IconsaxOutline.global_refresh),
|
||||
icon: const Icon(IconsaxOutline.global_refresh),
|
||||
action: () async {
|
||||
showRefreshPopup(context, id, detailedName(context) ?? name);
|
||||
},
|
||||
|
|
@ -198,7 +198,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
if (!exclude.contains(ItemActions.download) && downloadEnabled) ...{
|
||||
if (syncedItem == null)
|
||||
ItemActionButton(
|
||||
icon: Icon(IconsaxOutline.arrow_down_2),
|
||||
icon: const Icon(IconsaxOutline.arrow_down_2),
|
||||
label: Text(context.localized.sync),
|
||||
action: () => ref.read(syncProvider.notifier).addSyncItem(context, this),
|
||||
)
|
||||
|
|
@ -212,7 +212,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
if (canDelete == true)
|
||||
ItemActionButton(
|
||||
icon: Container(
|
||||
child: Icon(
|
||||
child: const Icon(
|
||||
IconsaxOutline.trash,
|
||||
),
|
||||
),
|
||||
|
|
@ -231,7 +231,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
),
|
||||
if (!exclude.contains(ItemActions.identify) && identifiable && isAdmin)
|
||||
ItemActionButton(
|
||||
icon: Icon(IconsaxOutline.search_normal),
|
||||
icon: const Icon(IconsaxOutline.search_normal),
|
||||
action: () async {
|
||||
showIdentifyScreen(context, this);
|
||||
},
|
||||
|
|
@ -239,7 +239,7 @@ extension ItemBaseModelExtensions on ItemBaseModel {
|
|||
),
|
||||
if (!exclude.contains(ItemActions.mediaInfo))
|
||||
ItemActionButton(
|
||||
icon: Icon(IconsaxOutline.info_circle),
|
||||
icon: const Icon(IconsaxOutline.info_circle),
|
||||
action: () async {
|
||||
showInfoScreen(context, this);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -320,7 +320,7 @@ class PlaybackDialogue extends StatelessWidget {
|
|||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16).add(EdgeInsets.only(top: 16, bottom: 8)),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16).add(const EdgeInsets.only(top: 16, bottom: 8)),
|
||||
child: Text(
|
||||
"Playback type",
|
||||
style: Theme.of(context).textTheme.titleLarge,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import 'package:uuid/uuid.dart';
|
||||
|
||||
String get jellyId {
|
||||
var uuid = Uuid();
|
||||
var uuid = const Uuid();
|
||||
var guid = uuid.v4().replaceAll('-', ''); // Remove hyphens
|
||||
return guid.substring(0, 32); // Take only the first 32 characters
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import 'package:collection/collection.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
extension ListExtensions on List<Widget> {
|
||||
addInBetween(Widget widget) {
|
||||
List<Widget> addInBetween(Widget widget) {
|
||||
return mapIndexed(
|
||||
(index, element) {
|
||||
if (element != last) {
|
||||
|
|
@ -14,7 +14,7 @@ extension ListExtensions on List<Widget> {
|
|||
).expand((element) => element).toList();
|
||||
}
|
||||
|
||||
addPadding(EdgeInsets padding) {
|
||||
List<Widget> addPadding(EdgeInsets padding) {
|
||||
return map((e) {
|
||||
if (e is Expanded || e is Spacer || e is Flexible) return e;
|
||||
return Padding(
|
||||
|
|
@ -29,7 +29,7 @@ extension ListExtensions on List<Widget> {
|
|||
}).toList();
|
||||
}
|
||||
|
||||
addSize({double? width, double? height}) {
|
||||
List<Widget> addSize({double? width, double? height}) {
|
||||
return map((e) {
|
||||
if (e is Expanded || e is Spacer || e is Flexible) return e;
|
||||
return SizedBox(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue