Skip to content

Commit

Permalink
fix: fixed broken details page when no extension installed
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanYuuki committed Dec 23, 2024
1 parent 29429ba commit 36ccaf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/pages/Anime/details_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -691,8 +691,9 @@ class _DetailsPageState extends rp.ConsumerState<DetailsPage>
height: 20,
),
DropdownButtonFormField<String>(
value:
'${activeSource!.name} (${activeSource!.lang?.toUpperCase()})',
value: installedExtensions?.isEmpty ?? true
? "No Sources Installed"
: '${activeSource!.name} (${activeSource!.lang?.toUpperCase()})',
decoration: InputDecoration(
labelText: 'Select Source',
filled: true,
Expand Down
5 changes: 3 additions & 2 deletions lib/pages/Manga/details_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,9 @@ class _MangaDetailsPageState extends State<MangaDetailsPage>
),
const SizedBox(height: 10),
DropdownButtonFormField<String>(
value:
'${activeSource!.name} (${activeSource!.lang?.toUpperCase()})',
value: installedExtensions?.isEmpty ?? true
? "No Sources Installed"
: '${activeSource!.name} (${activeSource!.lang?.toUpperCase()})',
decoration: InputDecoration(
labelText: activeSource != null
? 'Select Source'
Expand Down

0 comments on commit 36ccaf7

Please sign in to comment.