Skip to content

Commit

Permalink
fix: details screen
Browse files Browse the repository at this point in the history
  • Loading branch information
K3vinb5 committed Jun 29, 2024
1 parent ca7f2ca commit 8c39ac4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
21 changes: 16 additions & 5 deletions lib/screens/anime_details_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ class _AnimeDetailsScreenState extends State<AnimeDetailsScreen> {
);
}

void openWrongTitleDialog(BuildContext context, double width, double heigh,
void openWrongTitleDialog(BuildContext context, double width, double height,
void Function(void Function()) updateOutsideState) {
showDialog(
context: context,
Expand All @@ -469,22 +469,34 @@ class _AnimeDetailsScreenState extends State<AnimeDetailsScreen> {
//NOTE Must be container
content: Container(
width: width * 0.5,
height: heigh * 0.5,
height: height * 0.5,
decoration: const BoxDecoration(
image: DecorationImage(
fit: BoxFit.cover,
alignment: Alignment.bottomCenter,
opacity: 0.1,
image: NetworkImage("https://i.imgur.com/fUX8AXq.png"),
),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Column(
children: [
SizedBox(
height: height * 0.05,
),
const Text("Please select new title or search for one",
style: TextStyle(color: Colors.white)),
style:
TextStyle(color: Colors.white, fontSize: 22)),
const SizedBox(
height: 30,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
DropdownMenu(
width: 350,
width: width * 0.4,
textStyle: const TextStyle(color: Colors.white),
menuStyle: const MenuStyle(
backgroundColor: MaterialStatePropertyAll(
Expand Down Expand Up @@ -1179,7 +1191,6 @@ class _AnimeDetailsScreenState extends State<AnimeDetailsScreen> {
fontSize: 15,
fontWeight: FontWeight.normal),
),

IconButton(
onPressed: () {
if ((currentEpisodes + 1) * 30 >
Expand Down
3 changes: 2 additions & 1 deletion lib/screens/anime_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AnimeScreen extends StatefulWidget {
State<AnimeScreen> createState() => _AnimeScreenState();
}

void Function() resumeAnimePageTimer =(){};
void Function() resumeAnimePageTimer = () {};

class _AnimeScreenState extends State<AnimeScreen> {
List<AnimeModel> recentlyReleased = [];
Expand Down Expand Up @@ -371,6 +371,7 @@ class _AnimeScreenState extends State<AnimeScreen> {
AnimeButton(
text: "Advanced Search",
onTap: () {
// pageTimer.cancel();
Navigator.of(context).push(MaterialPageRoute(
builder: (context) => const MediaSearchScreen(
type: "ANIME",
Expand Down
17 changes: 14 additions & 3 deletions lib/screens/manga_details_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class _MangaDetailsScreenState extends State<MangaDetailsScreen> {
);
}

void openWrongTitleDialog(BuildContext context, double width, double heigh,
void openWrongTitleDialog(BuildContext context, double width, double height,
void Function(void Function()) updateOutsideState) {
showDialog(
context: context,
Expand All @@ -362,12 +362,23 @@ class _MangaDetailsScreenState extends State<MangaDetailsScreen> {
//NOTE Must be container
content: Container(
width: width * 0.5,
height: heigh * 0.5,
height: height * 0.5,
decoration: const BoxDecoration(
image: DecorationImage(
fit: BoxFit.cover,
alignment: Alignment.bottomCenter,
opacity: 0.1,
image: NetworkImage("https://i.imgur.com/fUX8AXq.png"),
),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Column(
children: [
SizedBox(
height: height * 0.05,
),
const Text("Please select new title or search for one",
style: TextStyle(color: Colors.white)),
const SizedBox(
Expand All @@ -377,7 +388,7 @@ class _MangaDetailsScreenState extends State<MangaDetailsScreen> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
DropdownMenu(
width: 350,
width: width * 0.4,
textStyle: const TextStyle(color: Colors.white),
menuStyle: const MenuStyle(
backgroundColor: MaterialStatePropertyAll(
Expand Down

0 comments on commit 8c39ac4

Please sign in to comment.