|
@@ -10,7 +10,7 @@ class Home extends StatelessWidget {
|
|
|
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
- var text_style = TextStyle(
|
|
|
+ var text_style = const TextStyle(
|
|
|
fontWeight: FontWeight.bold,
|
|
|
fontSize: 20,
|
|
|
);
|
|
@@ -18,7 +18,7 @@ class Home extends StatelessWidget {
|
|
|
return Scaffold(
|
|
|
appBar: AppBar(
|
|
|
// The title text which will be shown on the action bar
|
|
|
- title: Center(child: Text("Wes Anderson")),
|
|
|
+ title: const Center(child: Text("Wes Anderson")),
|
|
|
),
|
|
|
drawer: Container(
|
|
|
color: Colors.grey,
|
|
@@ -27,36 +27,37 @@ class Home extends StatelessWidget {
|
|
|
body: ListView(children: [
|
|
|
for (var point = 0; point < movieData.length; point++)
|
|
|
Container(
|
|
|
- child: (
|
|
|
- direction: Axis.horizontal,
|
|
|
+ margin: const EdgeInsets.fromLTRB(0, 0, 0, 10),
|
|
|
+ child: Row(
|
|
|
+ // direction: Axis.horizontal,
|
|
|
textDirection: TextDirection.ltr,
|
|
|
children: [
|
|
|
Expanded(
|
|
|
flex: 1,
|
|
|
child: Container(
|
|
|
+ margin: const EdgeInsets.fromLTRB(0, 0, 10, 0),
|
|
|
child: Image.asset('assets/poster/' +
|
|
|
- movieData[point]["postimages"]),
|
|
|
- margin: EdgeInsets.fromLTRB(0, 0, 10, 0))),
|
|
|
+ movieData[point]["postimages"]))),
|
|
|
Expanded(
|
|
|
flex: 1,
|
|
|
child: Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
children: [
|
|
|
Container(
|
|
|
+ margin: const EdgeInsets.fromLTRB(0, 0, 2, 2),
|
|
|
child: Text(movieData[point]["movietitle"],
|
|
|
- style: text_style),
|
|
|
- margin: EdgeInsets.fromLTRB(0, 0, 2, 2)),
|
|
|
+ style: text_style)),
|
|
|
Container(
|
|
|
child: Row(
|
|
|
children: [
|
|
|
- Text(
|
|
|
+ const Text(
|
|
|
"Release Date",
|
|
|
style: TextStyle(
|
|
|
fontSize: 18,
|
|
|
),
|
|
|
),
|
|
|
Text(movieData[point]["releasedate"],
|
|
|
- style: TextStyle(
|
|
|
+ style: const TextStyle(
|
|
|
fontSize: 18,
|
|
|
fontStyle: FontStyle.italic)),
|
|
|
],
|
|
@@ -67,14 +68,13 @@ class Home extends StatelessWidget {
|
|
|
'Score' +
|
|
|
movieData[point]["ratings"].toString() +
|
|
|
"%",
|
|
|
- style: TextStyle(
|
|
|
+ style: const TextStyle(
|
|
|
fontSize: 18,
|
|
|
)),
|
|
|
)
|
|
|
]))
|
|
|
],
|
|
|
- ),
|
|
|
- margin: EdgeInsets.fromLTRB(0, 0, 0, 10))
|
|
|
+ ))
|
|
|
]),
|
|
|
); //Scaffold
|
|
|
} //build
|