diff --git a/lib/pages/Android/Manga/read_page.dart b/lib/pages/Android/Manga/read_page.dart index 5c825b7..3656eea 100644 --- a/lib/pages/Android/Manga/read_page.dart +++ b/lib/pages/Android/Manga/read_page.dart @@ -290,9 +290,12 @@ class _ReadingPageState extends State { imageUrl: imageData['image'], fit: BoxFit.contain, progressIndicatorBuilder: (context, url, progress) => - Center( - child: CircularProgressIndicator( - value: progress.progress, + SizedBox( + height: MediaQuery.of(context).size.height, + child: Center( + child: CircularProgressIndicator( + value: progress.progress, + ), ), ), errorWidget: (context, url, error) => @@ -349,9 +352,12 @@ class _ReadingPageState extends State { return CachedNetworkImage( imageUrl: imageData['image'], fit: BoxFit.contain, - progressIndicatorBuilder: (context, url, progress) => Center( - child: CircularProgressIndicator( - value: progress.progress, + progressIndicatorBuilder: (context, url, progress) => SizedBox( + height: MediaQuery.of(context).size.height, + child: Center( + child: CircularProgressIndicator( + value: progress.progress, + ), ), ), errorWidget: (context, url, error) => const Icon(Icons.error), @@ -427,22 +433,23 @@ class _ReadingPageState extends State { ], ), ), - TileWithSlider( - title: 'Image Width', - sliderValue: imageWidthFactor, - onChanged: (double value) { - setModalState(() { - imageWidthFactor = value; - }); - setState(() {}); - }, - description: 'Only Works with webtoon mode', - icon: Icons.image_aspect_ratio_rounded, - min: 0.5, - max: 1.5, - divisions: 10, - ), - if (!Platform.isAndroid) + if (!Platform.isAndroid && !Platform.isIOS) + TileWithSlider( + title: 'Image Width', + sliderValue: imageWidthFactor, + onChanged: (double value) { + setModalState(() { + imageWidthFactor = value; + }); + setState(() {}); + }, + description: 'Only Works with webtoon mode', + icon: Icons.image_aspect_ratio_rounded, + min: 0.5, + max: 1.5, + divisions: 10, + ), + if (!Platform.isAndroid && !Platform.isIOS) TileWithSlider( title: 'Scroll Multiplier', sliderValue: scrollMultiplier, diff --git a/lib/pages/Android/user/settings.dart b/lib/pages/Android/user/settings.dart index 5c84348..97db277 100644 --- a/lib/pages/Android/user/settings.dart +++ b/lib/pages/Android/user/settings.dart @@ -3,6 +3,7 @@ import 'package:anymex/pages/Android/user/settings/settings_about.dart'; import 'package:anymex/pages/Android/user/settings/settings_download.dart'; import 'package:anymex/pages/Android/user/settings/settings_layout.dart'; import 'package:anymex/pages/Android/user/settings/settings_player.dart'; +import 'package:anymex/pages/Android/user/settings/settings_sources.dart'; import 'package:anymex/pages/Android/user/settings/settings_theme.dart'; import 'package:flutter/material.dart'; import 'package:hive/hive.dart'; @@ -58,6 +59,15 @@ class SettingsPage extends StatelessWidget { ), ), const SizedBox(height: 30), + CustomTile( + icon: Icons.source_rounded, + title: 'Source', + description: 'Source related settings', + onTap: () { + Navigator.push( + context, _createSlideRoute(const SettingsSources())); + }, + ), CustomTile( icon: HugeIcons.strokeRoundedPaintBrush02, title: 'UI', @@ -67,7 +77,7 @@ class SettingsPage extends StatelessWidget { }, ), CustomTile( - icon: Icons.source, + icon: Icons.download, title: 'Downloads', description: 'Tweak Download Settings', onTap: () { diff --git a/lib/pages/Android/user/settings/settings_download.dart b/lib/pages/Android/user/settings/settings_download.dart index 9329f74..1e7353b 100644 --- a/lib/pages/Android/user/settings/settings_download.dart +++ b/lib/pages/Android/user/settings/settings_download.dart @@ -55,7 +55,7 @@ class _SettingsDownloadState extends State { IconButton( onPressed: () {}, icon: const Icon( - Icons.source, + Icons.download, size: 40, )) ], diff --git a/lib/pages/Android/user/settings/settings_layout.dart b/lib/pages/Android/user/settings/settings_layout.dart index e3e92c2..a27d1b4 100644 --- a/lib/pages/Android/user/settings/settings_layout.dart +++ b/lib/pages/Android/user/settings/settings_layout.dart @@ -82,7 +82,7 @@ class _LayoutPageState extends State { fontSize: 12, color: Theme.of(context).colorScheme.primary)), ), - if (Platform.isAndroid) ...[ + if (Platform.isAndroid && Platform.isIOS) ...[ SwitchTileStateless( icon: Iconsax.card5, title: 'Compact Card', @@ -121,7 +121,7 @@ class _LayoutPageState extends State { builder: (context) => const ResizeTabbar())); }, ), - if (Platform.isAndroid) + if (Platform.isAndroid && Platform.isIOS) TileWithSlider( sliderValue: cardRoundness, onChanged: (newValue) { diff --git a/lib/pages/Android/user/settings/settings_player.dart b/lib/pages/Android/user/settings/settings_player.dart index c6a910d..1663f2c 100644 --- a/lib/pages/Android/user/settings/settings_player.dart +++ b/lib/pages/Android/user/settings/settings_player.dart @@ -249,7 +249,7 @@ class _VideoPlayerSettingsState extends State { onTap: _showPlaybackSpeedDialog, ), // Resize Mode - if (Platform.isAndroid) ...[ + if (Platform.isAndroid && Platform.isIOS) ...[ ListTile( leading: Icon(Icons.aspect_ratio, color: Theme.of(context).colorScheme.primary), @@ -353,7 +353,7 @@ class _VideoPlayerSettingsState extends State { }, ), // Subtitle Outline Color - if (Platform.isAndroid) ...[ + if (Platform.isAndroid && Platform.isIOS) ...[ ListTile( leading: Icon(Icons.palette, color: Theme.of(context).colorScheme.primary),