responsive

This commit is contained in:
kodjomoustapha 2023-05-19 17:02:37 +01:00
parent 03c4ab56e7
commit f5b29fc506
4 changed files with 111 additions and 115 deletions

View file

@ -84,7 +84,7 @@ class _MainScreenState extends State<MainScreen> {
route.location != '/browse' &&
route.location != '/more'
? 0
: 80,
: 100,
child: NavigationRailTheme(
data: NavigationRailThemeData(
indicatorShape: RoundedRectangleBorder(

View file

@ -200,8 +200,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
width: mediaWidth(context, 1),
height: AppBar().preferredSize.height,
color: Theme.of(context)
.scaffoldBackgroundColor
.withOpacity(0.9),
.scaffoldBackgroundColor,
),
Container(
width: mediaWidth(context, 1),

View file

@ -9,84 +9,79 @@ class MoreScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
const SizedBox(height: 150, child: Center(child: Text("LOGO"))),
Flexible(
flex: 3,
child: Column(
children: [
const Divider(),
// ListTile(
// onTap: () {},
// leading:
// const SizedBox(height: 40, child: Icon(Icons.cloud_off)),
// subtitle: const Text('Filter all entries in your library'),
// title: const Text('Donloaded only'),
// trailing: Switch(
// value: false,
// onChanged: (value) {},
// ),
// ),
const IncognitoModeWidget(),
const Divider(),
ListTileWidget(
onTap: () {
context.push('/downloadQueue');
},
icon: Icons.download_outlined,
title: 'Donwload queue',
),
ListTileWidget(
onTap: () {
context.push('/categories');
},
icon: Icons.label_outline_rounded,
title: 'Categories',
),
const Divider(),
// ListTile(
// onTap: () {},
// leading: Container(
// height: 20,
// width: 20,
// color: Colors.grey,
// ),
// title: const Text('Statistics'),
// ),
// ListTile(
// onTap: () {},
// leading: const SizedBox(
// height: 40,
// child: Icon(Icons.settings_backup_restore_sharp)),
// title: const Text('Backup and restore'),
// ),
// const Divider(
// color: Colors.grey,
// ),
ListTileWidget(
onTap: () {
context.push('/settings');
},
icon: Icons.settings_outlined,
title: 'Settings',
),
ListTileWidget(
onTap: () {
context.push('/about');
},
icon: Icons.info_outline,
title: 'About',
),
ListTileWidget(
onTap: () {},
icon: Icons.help_outline,
title: 'Help',
),
],
body: SingleChildScrollView(
child: Column(
children: [
const SizedBox(height: 150, child: Center(child: Text("LOGO"))),
const Divider(),
// ListTile(
// onTap: () {},
// leading:
// const SizedBox(height: 40, child: Icon(Icons.cloud_off)),
// subtitle: const Text('Filter all entries in your library'),
// title: const Text('Donloaded only'),
// trailing: Switch(
// value: false,
// onChanged: (value) {},
// ),
// ),
const IncognitoModeWidget(),
const Divider(),
ListTileWidget(
onTap: () {
context.push('/downloadQueue');
},
icon: Icons.download_outlined,
title: 'Donwload queue',
),
),
],
ListTileWidget(
onTap: () {
context.push('/categories');
},
icon: Icons.label_outline_rounded,
title: 'Categories',
),
const Divider(),
// ListTile(
// onTap: () {},
// leading: Container(
// height: 20,
// width: 20,
// color: Colors.grey,
// ),
// title: const Text('Statistics'),
// ),
// ListTile(
// onTap: () {},
// leading: const SizedBox(
// height: 40,
// child: Icon(Icons.settings_backup_restore_sharp)),
// title: const Text('Backup and restore'),
// ),
// const Divider(
// color: Colors.grey,
// ),
ListTileWidget(
onTap: () {
context.push('/settings');
},
icon: Icons.settings_outlined,
title: 'Settings',
),
ListTileWidget(
onTap: () {
context.push('/about');
},
icon: Icons.info_outline,
title: 'About',
),
ListTileWidget(
onTap: () {},
icon: Icons.help_outline,
title: 'Help',
),
],
),
),
);
}

View file

@ -11,41 +11,43 @@ class SettingsScreen extends StatelessWidget {
appBar: AppBar(
title: const Text("Settings"),
),
body: Column(
children: [
ListTileWidget(
title: 'General',
subtitle: 'App language',
icon: Icons.tune_rounded,
onTap: () => context.push('/general')),
ListTileWidget(
title: 'Appearance',
subtitle: 'Theme',
icon: Icons.color_lens_rounded,
onTap: () => context.push('/appearance')),
// ListTileWidget(
// title: 'Library',
// subtitle: 'Categories',
// icon: Icons.collections_bookmark_rounded,
// onTap: () {}),
ListTileWidget(
title: 'Reader',
subtitle: 'Reading mode, display, navigation',
icon: Icons.chrome_reader_mode_rounded,
onTap: () => context.push('/readerMode')),
ListTileWidget(
title: 'Browse',
subtitle: 'Sources, global search',
icon: Icons.explore_rounded,
onTap: () => context.push('/browseS')),
ListTileWidget(
onTap: () {
context.push('/about');
},
icon: Icons.info_outline,
title: 'About',
),
],
body: SingleChildScrollView(
child: Column(
children: [
ListTileWidget(
title: 'General',
subtitle: 'App language',
icon: Icons.tune_rounded,
onTap: () => context.push('/general')),
ListTileWidget(
title: 'Appearance',
subtitle: 'Theme',
icon: Icons.color_lens_rounded,
onTap: () => context.push('/appearance')),
// ListTileWidget(
// title: 'Library',
// subtitle: 'Categories',
// icon: Icons.collections_bookmark_rounded,
// onTap: () {}),
ListTileWidget(
title: 'Reader',
subtitle: 'Reading mode, display, navigation',
icon: Icons.chrome_reader_mode_rounded,
onTap: () => context.push('/readerMode')),
ListTileWidget(
title: 'Browse',
subtitle: 'Sources, global search',
icon: Icons.explore_rounded,
onTap: () => context.push('/browseS')),
ListTileWidget(
onTap: () {
context.push('/about');
},
icon: Icons.info_outline,
title: 'About',
),
],
),
),
);
}