Created
December 14, 2019 16:29
-
-
Save rrifafauzikomara/258fa86f00c8e55a6f43c5161127bca9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/arc_banner_image.dart'; | |
import 'package:flutter_modularization/widget/poster.dart'; | |
import 'package:flutter_modularization/widget/rating_information.dart'; | |
class MovieDetailHeader extends StatelessWidget { | |
final List<Widget> genre; | |
final String title; | |
final String imageBanner; | |
final String imagePoster; | |
final double rating; | |
const MovieDetailHeader({Key key, this.genre, this.title, this.imageBanner, this.imagePoster, this.rating}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
var movieInformation = Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: [ | |
Text( | |
title, | |
style: TextStyle( | |
color: Color.fromRGBO(58, 66, 86, 1.0), | |
fontSize: 20, | |
fontWeight: FontWeight.bold | |
), | |
), | |
SizedBox(height: 8.0), | |
RatingInformation(rating: rating,), | |
SizedBox(height: 12.0), | |
Padding( | |
padding: EdgeInsets.only(right: 8.0), | |
child: SingleChildScrollView( | |
scrollDirection: Axis.horizontal, | |
child: Row( | |
children: | |
genre, | |
), | |
), | |
), | |
], | |
); | |
// poster | |
return Stack(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment