diff --git a/lib/widgets/tvshowDetailsCastBox.dart b/lib/widgets/tvshowDetailsCastBox.dart index 40003b9..e547a1c 100644 --- a/lib/widgets/tvshowDetailsCastBox.dart +++ b/lib/widgets/tvshowDetailsCastBox.dart @@ -51,36 +51,46 @@ class TVShowDetailsCastBox extends StatelessWidget { ), ), ), - Table(children: const [ - TableRow(children: [ - Padding( - padding: EdgeInsets.symmetric( - vertical: 1, horizontal: 4), - child: Column( - crossAxisAlignment: CrossAxisAlignment.end, - children: [ - Text( - 'Actor', - style: TextStyle(fontWeight: FontWeight.bold), + Padding( + padding: const EdgeInsets.only( + left: 10.0, + right: 10.0, + top: 0.0, + bottom: 10.0, + ), + child: Table( + border: const TableBorder( + bottom: BorderSide(), horizontalInside: BorderSide()), + children: const [ + TableRow(children: [ + Padding( + padding: EdgeInsets.symmetric(vertical: 1, horizontal: 4), + child: Column( + crossAxisAlignment: CrossAxisAlignment.end, + children: [ + Text( + 'Actor', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ], ), - ], - ), - ), - Padding( - padding: EdgeInsets.symmetric( - vertical: 1, horizontal: 4), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - 'Role', - style: TextStyle(fontWeight: FontWeight.bold), + ), + Padding( + padding: EdgeInsets.symmetric(vertical: 1, horizontal: 4), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Role', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ], ), - ], - ), - ) - ]), - ],), + ) + ]), + ], + ), + ), Padding( padding: const EdgeInsets.only( left: 10.0, diff --git a/lib/widgets/tvshowDetailsCompaniesBox.dart b/lib/widgets/tvshowDetailsCompaniesBox.dart index 2113099..99cccab 100644 --- a/lib/widgets/tvshowDetailsCompaniesBox.dart +++ b/lib/widgets/tvshowDetailsCompaniesBox.dart @@ -51,23 +51,34 @@ class TVShowDetailsCompaniesBox extends StatelessWidget { ), ), ), - Table(children: const [ - TableRow(children: [ - Padding( - padding: EdgeInsets.symmetric( - vertical: 1, horizontal: 4), - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Text( - 'Name', - style: TextStyle(fontWeight: FontWeight.bold), + Padding( + padding: const EdgeInsets.only( + left: 10.0, + right: 10.0, + top: 0.0, + bottom: 10.0, + ), + child: Table( + border: const TableBorder( + bottom: BorderSide(), horizontalInside: BorderSide()), + children: const [ + TableRow(children: [ + Padding( + padding: EdgeInsets.symmetric(vertical: 1, horizontal: 4), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + 'Name', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ], ), - ], - ), - ), - ]), - ],), + ), + ]), + ], + ), + ), Padding( padding: const EdgeInsets.only( left: 10.0, diff --git a/lib/widgets/tvshowDetailsCountriesBox.dart b/lib/widgets/tvshowDetailsCountriesBox.dart index c0ce65a..eba7859 100644 --- a/lib/widgets/tvshowDetailsCountriesBox.dart +++ b/lib/widgets/tvshowDetailsCountriesBox.dart @@ -51,23 +51,34 @@ class TVShowDetailsCountriesBox extends StatelessWidget { ), ), ), - Table(children: const [ - TableRow(children: [ - Padding( - padding: EdgeInsets.symmetric( - vertical: 1, horizontal: 4), - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Text( - 'Name', - style: TextStyle(fontWeight: FontWeight.bold), + Padding( + padding: const EdgeInsets.only( + left: 10.0, + right: 10.0, + top: 0.0, + bottom: 10.0, + ), + child: Table( + border: const TableBorder( + bottom: BorderSide(), horizontalInside: BorderSide()), + children: const [ + TableRow(children: [ + Padding( + padding: EdgeInsets.symmetric(vertical: 1, horizontal: 4), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + 'Name', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ], ), - ], - ), - ), - ]), - ],), + ), + ]), + ], + ), + ), Padding( padding: const EdgeInsets.only( left: 10.0, diff --git a/lib/widgets/tvshowDetailsCrewBox.dart b/lib/widgets/tvshowDetailsCrewBox.dart index 8b6e6f2..7482dc9 100644 --- a/lib/widgets/tvshowDetailsCrewBox.dart +++ b/lib/widgets/tvshowDetailsCrewBox.dart @@ -51,36 +51,46 @@ class TVShowDetailsCrewBox extends StatelessWidget { ), ), ), - Table(children: const [ - TableRow(children: [ - Padding( - padding: EdgeInsets.symmetric( - vertical: 1, horizontal: 4), - child: Column( - crossAxisAlignment: CrossAxisAlignment.end, - children: [ - Text( - 'Name', - style: TextStyle(fontWeight: FontWeight.bold), + Padding( + padding: const EdgeInsets.only( + left: 10.0, + right: 10.0, + top: 0.0, + bottom: 10.0, + ), + child: Table( + border: const TableBorder( + bottom: BorderSide(), horizontalInside: BorderSide()), + children: const [ + TableRow(children: [ + Padding( + padding: EdgeInsets.symmetric(vertical: 1, horizontal: 4), + child: Column( + crossAxisAlignment: CrossAxisAlignment.end, + children: [ + Text( + 'Name', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ], ), - ], - ), - ), - Padding( - padding: EdgeInsets.symmetric( - vertical: 1, horizontal: 4), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - 'Crew', - style: TextStyle(fontWeight: FontWeight.bold), + ), + Padding( + padding: EdgeInsets.symmetric(vertical: 1, horizontal: 4), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Crew', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ], ), - ], - ), - ) - ]), - ],), + ) + ]), + ], + ), + ), Padding( padding: const EdgeInsets.only( left: 10.0, diff --git a/lib/widgets/tvshowDetailsGenreBox.dart b/lib/widgets/tvshowDetailsGenreBox.dart index 736d222..964420b 100644 --- a/lib/widgets/tvshowDetailsGenreBox.dart +++ b/lib/widgets/tvshowDetailsGenreBox.dart @@ -51,23 +51,34 @@ class TVShowDetailsGenreBox extends StatelessWidget { ), ), ), - Table(children: const [ - TableRow(children: [ - Padding( - padding: EdgeInsets.symmetric( - vertical: 1, horizontal: 4), - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Text( - 'Name', - style: TextStyle(fontWeight: FontWeight.bold), + Padding( + padding: const EdgeInsets.only( + left: 10.0, + right: 10.0, + top: 0.0, + bottom: 10.0, + ), + child: Table( + border: const TableBorder( + bottom: BorderSide(), horizontalInside: BorderSide()), + children: const [ + TableRow(children: [ + Padding( + padding: EdgeInsets.symmetric(vertical: 1, horizontal: 4), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + 'Name', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ], ), - ], - ), - ), - ]), - ],), + ), + ]), + ], + ), + ), Padding( padding: const EdgeInsets.only( left: 10.0, diff --git a/lib/widgets/tvshowDetailsScreen.dart b/lib/widgets/tvshowDetailsScreen.dart index 6bab4fd..7ec1239 100644 --- a/lib/widgets/tvshowDetailsScreen.dart +++ b/lib/widgets/tvshowDetailsScreen.dart @@ -5,6 +5,7 @@ import 'package:multimedia/widgets/tvshowDetailsCrewBox.dart'; import 'package:multimedia/widgets/tvshowDetailsCastBox.dart'; import 'package:multimedia/widgets/tvshowDetailsGenreBox.dart'; import 'package:multimedia/widgets/tvshowDetailsOverviewBox.dart'; +import 'package:multimedia/widgets/tvshowDetailsSeasons.dart'; import 'package:multimedia/widgets/tvshowDetailsSettingsBox.dart'; import 'package:transparent_image/transparent_image.dart'; @@ -113,6 +114,9 @@ class TVShowDetailsScreen extends StatelessWidget { cliffhanger: tvShow.cliffhanger, ), ), + TVShowDetailsSeasons( + seasonStatus: tvShow.seasonStatus, + ), ], ), ]), diff --git a/lib/widgets/tvshowDetailsSeasonBox.dart b/lib/widgets/tvshowDetailsSeasonBox.dart new file mode 100644 index 0000000..084295a --- /dev/null +++ b/lib/widgets/tvshowDetailsSeasonBox.dart @@ -0,0 +1,72 @@ +import 'package:flutter/material.dart'; + +import 'package:multimedia/constants.dart'; + +import '../data/tvshows.dart'; + +class TVShowDetailsSeasonBox extends StatelessWidget { + TVShowDetailsSeasonBox({super.key, required this.season}); + + Season season; + + @override + Widget build(BuildContext context) { + + return Container( + decoration: BoxDecoration( + color: BoxColor.backgroundColor, + borderRadius: const BorderRadius.all( + Radius.circular(10.0), + ), + ), + child: Column( + children: [ + Padding( + padding: const EdgeInsets.only( + left: 5.0, + right: 5.0, + top: 10.0, + bottom: 5.0, + ), + child: Container( + decoration: BoxDecoration( + color: BoxColor.titleBackgroundColor, + borderRadius: const BorderRadius.all( + Radius.circular(10.0), + ), + ), + child: Expanded( + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Text( + 'Season ${season.seasonNumber}', + style: TextStyle( + fontWeight: FontWeight.bold, + color: BoxColor.titleColor), + textAlign: TextAlign.center, + ), + ], + ), + ), + ), + ), + Center( + child: Padding( + padding: const EdgeInsets.symmetric( + vertical: 10, horizontal: 10), + child: Container( + alignment: Alignment.centerLeft, + child: Text( + 'aaa', + style: const TextStyle(fontSize: 14.0), + ), + ), + ), + ), + ], + ), + ); + } +} diff --git a/lib/widgets/tvshowDetailsSeasons.dart b/lib/widgets/tvshowDetailsSeasons.dart new file mode 100644 index 0000000..0f3d87b --- /dev/null +++ b/lib/widgets/tvshowDetailsSeasons.dart @@ -0,0 +1,38 @@ +import 'package:flutter/material.dart'; +import 'package:multimedia/widgets/tvshowDetailsSeasonBox.dart'; + +import '../constants.dart'; +import '../data/tvshows.dart'; + +class TVShowDetailsSeasons extends StatefulWidget { + TVShowDetailsSeasons({ + super.key, + required this.seasonStatus, + }); + + List seasonStatus; + + @override + State createState() => _TVShowDetailsSeasonsState(); +} + +class _TVShowDetailsSeasonsState extends State { + @override + Widget build(BuildContext context) { + return Container( + decoration: BoxDecoration( + color: BoxColor.backgroundColor, + borderRadius: const BorderRadius.all( + Radius.circular(10.0), + ), + ), + child: Column( + children: [ + TVShowDetailsSeasonBox( + season: widget.seasonStatus[0], + ), + ], + ), + ); + } +}