Skip to content

Commit

Permalink
refactor: make manga favourite page responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
reyyuuki committed Dec 1, 2024
1 parent 75e20fe commit 49718a9
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions lib/Screens/Favrouite/manga_favourite_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import 'package:daizy_tv/Hive_Data/appDatabase.dart';
import 'package:daizy_tv/auth/auth_provider.dart';
import 'package:daizy_tv/components/Anime/poster.dart';
import 'package:daizy_tv/components/Anime/coverImage.dart';
import 'package:daizy_tv/components/Common/check_platform.dart';
import 'package:daizy_tv/components/Desktop/Manga/desktop_chapter_list.dart';
import 'package:daizy_tv/components/Manga/chapterList.dart';
import 'package:daizy_tv/components/Manga/mangaFloater.dart';
import 'package:daizy_tv/utils/sources/Manga/Base/extract_class.dart';
Expand Down Expand Up @@ -147,6 +149,7 @@ class _DetailsState extends State<MangaFavouritePage> {
body: Stack(
children: [
ListView(
physics: const BouncingScrollPhysics(),
children: [
Stack(
children: [
Expand Down Expand Up @@ -208,17 +211,30 @@ class _DetailsState extends State<MangaFavouritePage> {
SizedBox(
height: 485,
child: mangaData!['chapterList'] != null
? ListView(
children: chapterList!.map<Widget>((chapter) {
return Chapterlist(
id: widget.id,
chapter: chapter,
image: widget.image,
);
}).toList(),
)
? PlatformWidget(
androidWidget: ListView(
physics: const BouncingScrollPhysics(),
children: chapterList!.map<Widget>((chapter) {
return Chapterlist(
id: widget.id,
chapter: chapter,
image: widget.image,
);
}).toList(),
),
windowsWidget: ListView(
physics: const BouncingScrollPhysics(),
children: chapterList!.map<Widget>((chapter) {
return DesktopChapterList(
id: widget.id,
chapter: chapter,
image: widget.image,
);
}).toList(),
))
: const Center(child: CircularProgressIndicator()),
),
const SizedBox(height: 60,)
],
),
mangaData != null
Expand Down

0 comments on commit 49718a9

Please sign in to comment.