From 4c59da6efa33443fff2c4428bab9bf747c597526 Mon Sep 17 00:00:00 2001 From: Ved Prakash Date: Thu, 6 Jan 2022 23:07:27 +0530 Subject: [PATCH] fixes --- lib/screens/anime_detail_screen.dart | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/lib/screens/anime_detail_screen.dart b/lib/screens/anime_detail_screen.dart index 621227b..3bfbe4f 100644 --- a/lib/screens/anime_detail_screen.dart +++ b/lib/screens/anime_detail_screen.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:mal/widgets/custom_text.dart'; import 'package:provider/provider.dart'; import 'package:expandable_text/expandable_text.dart'; @@ -208,8 +209,18 @@ class _AnimeDetailScreenState extends State { // ), const AdditionalInfo(), const CharacterStaffs(), + details.openingThemes.length > 10 + ? const Padding( + padding: EdgeInsets.only(left: 12.0), + child: CustomText('Opening Theme', 16, false), + ) + : Container(), Padding( - padding: const EdgeInsets.all(12.0), + padding: const EdgeInsets.only( + left: 30, + right: 12, + bottom: 12, + ), child: ExpandableText( details.openingThemes, expandText: 'Show More', @@ -218,8 +229,17 @@ class _AnimeDetailScreenState extends State { linkColor: Theme.of(context).primaryColor, ), ), + details.openingThemes.length > 10 + ? const Padding( + padding: EdgeInsets.only(left: 12.0), + child: CustomText('Ending Theme', 16, false), + ) + : Container(), Padding( - padding: const EdgeInsets.only(left: 12.0, right: 12.0), + padding: const EdgeInsets.only( + left: 30.0, + right: 12.0, + ), child: ExpandableText( details.endingThemes, expandText: 'Show More',