Skip to content

Commit

Permalink
style: adjusting the styling
Browse files Browse the repository at this point in the history
  • Loading branch information
reyyuuki committed Dec 1, 2024
1 parent 49718a9 commit 226e4bf
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 18 deletions.
10 changes: 8 additions & 2 deletions lib/Screens/Lists/mangalist.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: library_private_types_in_public_api

import 'package:daizy_tv/auth/auth_provider.dart';
import 'package:daizy_tv/components/Manga/all_manga_lists.dart';
import 'package:daizy_tv/components/Manga/manga_user_data.dart';
Expand Down Expand Up @@ -29,8 +31,7 @@ return Consumer<AniListProvider>(
{"name": "All", "view": AllMangaLists(data: provider['mangaList'])},
{"name": "Completed", "view": MangaLists(data: provider['mangaList'], status: "COMPLETED")},
{"name": "Planning", "view": MangaLists(data: provider['mangaList'], status: "PLANNING")},
{"name": "Releasing", "view": MangaLists(data: provider['mangaList'], status: "RELEASING")},
{"name": "Reading", "view": MangaLists(data: provider['mangaList'], status: "READING")},
{"name": "Reading", "view": MangaLists(data: provider['mangaList'], status: "CURRENT")},
{"name": "Repeating", "view": MangaLists(data: provider['mangaList'], status: "REPEATING")},
{"name": "Paused", "view": MangaLists(data: provider['mangaList'], status: "PAUSED")},
{"name": "Dropped","view": MangaLists(data: provider['mangaList'], status: "DROPPED")},
Expand All @@ -48,6 +49,11 @@ return Consumer<AniListProvider>(
_scaffoldKey.currentState?.openDrawer();
},
),
actions: [
IconButton(onPressed: (){
Navigator.pop(context);
}, icon: const Icon(Icons.close))
],
),
drawer: Drawer(
width: 200,
Expand Down
8 changes: 3 additions & 5 deletions lib/Screens/Manga/mangaDetails.dart
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ class _DetailsState extends State<Mangadetails> {
child: CircularProgressIndicator(),
)
: ListView.builder(
physics: const BouncingScrollPhysics(),
itemCount: wrongTitleSearchData.length,
itemBuilder: (context, index) {
final title =
Expand All @@ -303,11 +304,7 @@ class _DetailsState extends State<Mangadetails> {
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5),
border: Border.all(
color: Theme.of(context)
.colorScheme
.primary,
),
color:Theme.of(context).colorScheme.surfaceContainerHigh
),
height: 90,
child: Row(
Expand Down Expand Up @@ -735,6 +732,7 @@ class _DetailsState extends State<Mangadetails> {
height: 400,
child: chapterList != null && chapterList!.isNotEmpty
? ListView(
physics: const BouncingScrollPhysics(),
children: chapterList!.map<Widget>((chapter) {
return Chapterlist(
id: widget.id,
Expand Down
54 changes: 43 additions & 11 deletions lib/Screens/settings/_about.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: non_constant_identifier_names

import 'package:flutter/material.dart';
import 'package:ionicons/ionicons.dart';
import 'package:url_launcher/url_launcher.dart';
Expand All @@ -19,7 +21,8 @@ class About extends StatelessWidget {
final width = MediaQuery.of(context).size.width;
return Scaffold(
backgroundColor: Theme.of(context).colorScheme.surface,
body: Column(
body: ListView(
physics: const BouncingScrollPhysics(),
children: [
Stack(
children: [
Expand Down Expand Up @@ -79,7 +82,7 @@ class About extends StatelessWidget {
),
),
GestureDetector(
onTap: (){
onTap: () {
_launchURL("https://github.com/reyyuuki");
},
child: Container(
Expand Down Expand Up @@ -127,6 +130,15 @@ class About extends StatelessWidget {
),
),
),
Positioned(
top: 10,
left: 0,
child: IconButton(
onPressed: () {
Navigator.pop(context);
},
iconSize: 35,
icon: const Icon(Icons.arrow_back_ios)))
],
),
const SizedBox(
Expand All @@ -136,23 +148,43 @@ class About extends StatelessWidget {
padding: const EdgeInsets.all(15.0),
child: Column(
children: [
list_tile(width, context, const Icon(Ionicons.logo_github),
"Github", "Explore and contribute to the code.", "https://github.com/reyyuuki/Azyx"),
list_tile(
width,
context,
const Icon(Ionicons.logo_github),
"Github",
"Explore and contribute to the code.",
"https://github.com/reyyuuki/Azyx"),
const SizedBox(
height: 10,
),
list_tile(width, context, const Icon(Ionicons.logo_discord),
"Discord", "Chat and collaborate with community.","https://discord.com/channels/@me"),
list_tile(
width,
context,
const Icon(Ionicons.logo_discord),
"Discord",
"Chat and collaborate with community.",
"https://discord.com/channels/@me"),
const SizedBox(
height: 10,
),
list_tile(width, context, const Icon(Icons.telegram),
"Telegram", "Stay updated and connect with others.","https://t.me/Azyxanime"),
list_tile(
width,
context,
const Icon(Icons.telegram),
"Telegram",
"Stay updated and connect with others.",
"https://t.me/Azyxanime"),
const SizedBox(
height: 10,
),
list_tile(width, context, const Icon(Ionicons.logo_reddit),
"Reddit", "Discuss features and share feedback.","https://www.reddit.com/?rdt=44738"),
list_tile(
width,
context,
const Icon(Ionicons.logo_reddit),
"Reddit",
"Discuss features and share feedback.",
"https://www.reddit.com/?rdt=44738"),
],
),
)
Expand All @@ -164,7 +196,7 @@ class About extends StatelessWidget {
GestureDetector list_tile(double width, BuildContext context, Icon icon,
String name, String subTitle, String url) {
return GestureDetector(
onTap: (){
onTap: () {
_launchURL(url);
},
child: Container(
Expand Down

0 comments on commit 226e4bf

Please sign in to comment.