movie and tvshow list
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
],
|
||||
),
|
||||
]),
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -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<Season> seasonStatus;
|
||||
|
||||
@override
|
||||
State<TVShowDetailsSeasons> createState() => _TVShowDetailsSeasonsState();
|
||||
}
|
||||
|
||||
class _TVShowDetailsSeasonsState extends State<TVShowDetailsSeasons> {
|
||||
@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],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user