mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
fix(Assets): Cleanup assets, add asset existence tests (#460)
* feat(packages): Add coverage script, update spider asset paths * fix(Assets): Cleanup asset structure * fix(Assets): Update asset paths within codebase
This commit is contained in:
@@ -23,7 +23,7 @@ class _State extends State<RadarrAddMovieDiscoveryResultTile> {
|
||||
backgroundUrl: widget.movie.remotePoster,
|
||||
posterUrl: widget.movie.remotePoster,
|
||||
posterHeaders: context.watch<RadarrState>().headers,
|
||||
posterPlaceholder: LunaAssets.video,
|
||||
posterPlaceholder: LunaAssets.blankVideo,
|
||||
title: widget.movie.title,
|
||||
subtitle1: _subtitle1(),
|
||||
subtitle2: _subtitle2(),
|
||||
|
||||
@@ -27,7 +27,7 @@ class _State extends State<RadarrAddMovieSearchResultTile> {
|
||||
backgroundUrl: widget.movie.remotePoster,
|
||||
posterUrl: widget.movie.remotePoster,
|
||||
posterHeaders: context.watch<RadarrState>().headers,
|
||||
posterPlaceholder: LunaAssets.video,
|
||||
posterPlaceholder: LunaAssets.blankVideo,
|
||||
title: widget.movie.title,
|
||||
darken: widget.exists,
|
||||
titleColor: widget.isExcluded ? LunaColours.red : Colors.white,
|
||||
|
||||
@@ -26,7 +26,7 @@ class _State extends State<RadarrCatalogueTile> {
|
||||
context.read<RadarrState>().getPosterURL(widget.movie.id),
|
||||
posterUrl: context.read<RadarrState>().getPosterURL(widget.movie.id),
|
||||
posterHeaders: context.read<RadarrState>().headers,
|
||||
posterPlaceholder: LunaAssets.video,
|
||||
posterPlaceholder: LunaAssets.blankVideo,
|
||||
darken: !widget.movie.monitored,
|
||||
title: widget.movie.title,
|
||||
subtitle1: _subtitle1(),
|
||||
|
||||
@@ -26,7 +26,7 @@ class _State extends State<RadarrMissingTile> {
|
||||
context.read<RadarrState>().getPosterURL(widget.movie.id),
|
||||
posterUrl: context.read<RadarrState>().getPosterURL(widget.movie.id),
|
||||
posterHeaders: context.read<RadarrState>().headers,
|
||||
posterPlaceholder: LunaAssets.video,
|
||||
posterPlaceholder: LunaAssets.blankVideo,
|
||||
darken: !widget.movie.monitored,
|
||||
title: widget.movie.title,
|
||||
subtitle1: _subtitle1(),
|
||||
|
||||
@@ -27,7 +27,7 @@ class RadarrMovieDetailsCastCrewTile extends StatelessWidget {
|
||||
}
|
||||
return LunaTwoLineCardWithPoster(
|
||||
title: credits.personName,
|
||||
posterPlaceholder: LunaAssets.user,
|
||||
posterPlaceholder: LunaAssets.blankUser,
|
||||
posterUrl: credits.images.isEmpty ? null : credits.images[0].url,
|
||||
posterHeaders: {},
|
||||
subtitle1: TextSpan(text: position),
|
||||
|
||||
@@ -12,7 +12,7 @@ class RadarrMovieDetailsOverviewDescriptionTile extends StatelessWidget {
|
||||
|
||||
Widget build(BuildContext context) {
|
||||
return LunaFourLineCardWithPoster(
|
||||
posterPlaceholder: LunaAssets.video,
|
||||
posterPlaceholder: LunaAssets.blankVideo,
|
||||
backgroundUrl: context.read<RadarrState>().getFanartURL(movie.id),
|
||||
posterUrl: context.read<RadarrState>().getPosterURL(movie.id),
|
||||
posterHeaders: context.read<RadarrState>().headers,
|
||||
|
||||
@@ -19,7 +19,7 @@ class RadarrMovieDetailsOverviewLinksSection extends StatelessWidget {
|
||||
context: context,
|
||||
child: InkWell(
|
||||
child: Padding(
|
||||
child: Image.asset(LunaAssets.imdb),
|
||||
child: Image.asset(LunaAssets.serviceImdb),
|
||||
padding: EdgeInsets.all(12.0),
|
||||
),
|
||||
borderRadius: BorderRadius.circular(LunaUI.BORDER_RADIUS),
|
||||
@@ -33,7 +33,7 @@ class RadarrMovieDetailsOverviewLinksSection extends StatelessWidget {
|
||||
context: context,
|
||||
child: InkWell(
|
||||
child: Padding(
|
||||
child: Image.asset(LunaAssets.themoviedb),
|
||||
child: Image.asset(LunaAssets.serviceThemoviedb),
|
||||
padding: EdgeInsets.all(12.0),
|
||||
),
|
||||
borderRadius: BorderRadius.circular(LunaUI.BORDER_RADIUS),
|
||||
@@ -48,7 +48,7 @@ class RadarrMovieDetailsOverviewLinksSection extends StatelessWidget {
|
||||
context: context,
|
||||
child: InkWell(
|
||||
child: Padding(
|
||||
child: Image.asset(LunaAssets.trakt),
|
||||
child: Image.asset('assets/images/services/trakt.png'),
|
||||
padding: EdgeInsets.all(12.0),
|
||||
),
|
||||
borderRadius: BorderRadius.circular(LunaUI.BORDER_RADIUS),
|
||||
@@ -63,7 +63,7 @@ class RadarrMovieDetailsOverviewLinksSection extends StatelessWidget {
|
||||
context: context,
|
||||
child: InkWell(
|
||||
child: Padding(
|
||||
child: Image.asset(LunaAssets.youtube),
|
||||
child: Image.asset(LunaAssets.serviceYoutube),
|
||||
padding: EdgeInsets.all(12.0),
|
||||
),
|
||||
borderRadius: BorderRadius.circular(LunaUI.BORDER_RADIUS),
|
||||
|
||||
@@ -26,7 +26,7 @@ class _State extends State<RadarrUpcomingTile> {
|
||||
context.read<RadarrState>().getPosterURL(widget.movie.id),
|
||||
posterUrl: context.read<RadarrState>().getPosterURL(widget.movie.id),
|
||||
posterHeaders: context.read<RadarrState>().headers,
|
||||
posterPlaceholder: LunaAssets.video,
|
||||
posterPlaceholder: LunaAssets.blankVideo,
|
||||
darken: !widget.movie.monitored,
|
||||
title: widget.movie.title,
|
||||
subtitle1: _subtitle1(),
|
||||
|
||||
Reference in New Issue
Block a user