Skip to content

Commit

Permalink
- Introduced Source Support (Beta)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanYuuki committed Sep 8, 2024
1 parent b433076 commit 3b5f4d8
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 17 deletions.
1 change: 0 additions & 1 deletion lib/components/MangaExclusive/carousel.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// ignore_for_file: prefer_const_constructors

import 'dart:developer';

import 'package:aurora/components/IconWithLabel.dart';
import 'package:cached_network_image/cached_network_image.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/components/SettingsModal.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:io';

import 'package:aurora/main.dart';
import 'package:aurora/pages/onboarding_screens/login_page.dart';
import 'package:aurora/pages/user/profile.dart';
import 'package:aurora/pages/user/settings.dart';
import 'package:flutter/material.dart';
Expand Down
6 changes: 3 additions & 3 deletions lib/components/episode_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class _EpisodeGridState extends State<EpisodeGrid> {
itemCount: filteredEpisodes.length,
itemBuilder: (context, index) {
final episode = filteredEpisodes[index];
final episodeNumber = episode['number'];
final episodeTitle = episode['title'] ?? 'No Title';
final isFiller = episode['isFiller'] ?? false;
final episodeNumber = episode?['number'];
final episodeTitle = episode?['title'] ?? 'No Title';
final isFiller = episode?['isFiller'] ?? false;
final isSelected = widget.currentEpisode == episodeNumber;

return GestureDetector(
Expand Down
19 changes: 11 additions & 8 deletions lib/components/homepage/homepage_carousel.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:aurora/components/IconWithLabel.dart';
import 'package:aurora/pages/Anime/details_page.dart';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:iconsax/iconsax.dart';
Expand Down Expand Up @@ -82,14 +83,15 @@ class HomepageCarousel extends StatelessWidget {
padding: const EdgeInsets.only(right: 8.0),
child: GestureDetector(
onTap: () {
Navigator.pushNamed(
Navigator.push(
context,
'/details',
arguments: {
'id': itemData['animeId'],
'posterUrl': proxyUrl + posterUrl,
'tag': tagg
},
MaterialPageRoute(
builder: (context) => DetailsPage(
id: itemData['animeId'],
posterUrl: proxyUrl + posterUrl,
tag: tagg,
),
),
);
},
child: Column(
Expand All @@ -102,7 +104,8 @@ class HomepageCarousel extends StatelessWidget {
borderRadius: BorderRadius.circular(12),
child: CachedNetworkImage(
imageUrl: proxyUrl + posterUrl,
placeholder: (context, url) => Shimmer.fromColors(
placeholder: (context, url) =>
Shimmer.fromColors(
baseColor: Colors.grey[900]!,
highlightColor: Colors.grey[700]!,
child: Container(
Expand Down
8 changes: 5 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:developer';

import 'package:aurora/database/database.dart';
import 'package:aurora/pages/onboarding_screens/login_page.dart';
Expand Down Expand Up @@ -131,8 +130,11 @@ class _MainAppState extends State<MainApp> {
final id = args?['id'] ?? '';
final tag = args?['tag'] ?? '';
return MaterialPageRoute(
builder: (context) =>
DetailsPage(id: id, posterUrl: posterUrl, tag: tag),
builder: (context) => DetailsPage(
id: id,
posterUrl: posterUrl,
tag: tag,
),
);
case '/watch':
final id = args?['id'] ?? '';
Expand Down
1 change: 0 additions & 1 deletion lib/pages/Manga/details_page.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// ignore_for_file: prefer_const_constructors, deprecated_member_use, non_constant_identifier_names, must_be_immutable, avoid_print
import 'dart:convert';
import 'dart:developer';
import 'dart:ui';
import 'package:aurora/components/IconWithLabel.dart';
import 'package:aurora/components/MangaExclusive/chapters.dart';
Expand Down

0 comments on commit 3b5f4d8

Please sign in to comment.