Skip to content

Commit

Permalink
refactor: make novel page responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
reyyuuki committed Dec 1, 2024
1 parent 077d358 commit 5e51316
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/Screens/Novel/novel_page.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import 'dart:developer';

import 'package:daizy_tv/Provider/sources_provider.dart';
import 'package:daizy_tv/backupData/novel_buddy_fallback.dart';
import 'package:daizy_tv/components/Common/Header.dart';
import 'package:daizy_tv/components/Common/check_platform.dart';
import 'package:daizy_tv/components/Desktop/Novel/desktop_carousale.dart';
import 'package:daizy_tv/components/Novel/novel_carousale.dart';
import 'package:daizy_tv/components/Novel/reusable_list.dart';
import 'package:daizy_tv/utils/sources/Novel/Extensions/novel_buddy.dart';
import 'package:flutter/material.dart';
import 'package:iconsax/iconsax.dart';
import 'package:provider/provider.dart';

class NovelPage extends StatefulWidget {
const NovelPage({super.key});
Expand Down Expand Up @@ -52,9 +52,11 @@ void backupdata(){
return const Center(child: CircularProgressIndicator(),);
}
return Scaffold(
backgroundColor: Theme.of(context).colorScheme.surface,
body: Padding(
padding: const EdgeInsets.all(8.0),
child: ListView(
physics: const BouncingScrollPhysics(),
children: [
const Header(),
const SizedBox(height: 10,),
Expand Down Expand Up @@ -90,13 +92,13 @@ void backupdata(){
),
),
const SizedBox(height: 30.0),
NovelCarousale(route: '/novelDetail', animeData: data,),
PlatformWidget(androidWidget: NovelCarousale( novelData: data,), windowsWidget: NovelDesktopCarousale( novelData: data,)),
const SizedBox(height: 20,),
NovelList(name: "Popular Novel", taggName: "Popular", route: '', data: data?.sublist(0,10),),
const SizedBox(height: 20,),
NovelList(name: "Trending Novel", taggName: "Popular", route: '', data: data?.sublist(11,20),),
const SizedBox(height: 20,),
NovelList(name: "Latest Novel", taggName: "Popular", route: '', data: data?.sublist(21,28),)
NovelList(name: "Latest Novel", taggName: "Popular", route: '', data: data?.sublist(21,28),),
],
),
),
Expand Down

0 comments on commit 5e51316

Please sign in to comment.