Created
December 14, 2019 16:55
-
-
Save rrifafauzikomara/52973dccba8ce92fdc963ef921a86ef3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_modularization/widget/movie_detail_header.dart'; | |
import 'package:flutter_modularization/widget/story_line.dart'; | |
class DetailPage extends StatelessWidget { | |
final List<Widget> genre; | |
final String title; | |
final String imageBanner; | |
final String imagePoster; | |
final double rating; | |
final String overview; | |
const DetailPage({Key key, this.genre, this.title, this.imageBanner, this.imagePoster, this.rating, this.overview}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.white, | |
body: SingleChildScrollView( | |
child: Stack( | |
children: <Widget>[ | |
Column( | |
children: [ | |
MovieDetailHeader( | |
title: title, | |
imageBanner: imageBanner, | |
imagePoster: imagePoster, | |
rating: rating, | |
genre: genre, | |
), | |
Padding( | |
padding: const EdgeInsets.all(20.0), | |
child: Storyline(overview), | |
), | |
SizedBox(height: 50.0), | |
], | |
), | |
Positioned( | |
top: 20, | |
left: 5, | |
child: IconButton(icon: Icon(Icons.arrow_back), onPressed: () => Navigator.pop(context)), | |
), | |
], | |
) | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment