67 lines
1.8 KiB
Dart
67 lines
1.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:multimedia/constants.dart';
|
|
|
|
class TVShowDetailsOverviewBox extends StatelessWidget {
|
|
const TVShowDetailsOverviewBox({super.key, required this.overview});
|
|
|
|
final String overview;
|
|
|
|
@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: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
children: [
|
|
Text(
|
|
'Overview',
|
|
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(
|
|
overview,
|
|
style: const TextStyle(fontSize: 14.0),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|