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'; | |
class Storyline extends StatelessWidget { | |
Storyline(this.storyline); | |
final String storyline; | |
@override | |
Widget build(BuildContext context) { | |
var theme = Theme.of(context); | |
var textTheme = Theme.of(context).textTheme; |
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'; | |
class RatingInformation extends StatelessWidget { | |
final double rating; | |
const RatingInformation({Key key, this.rating}) : super(key: key); | |
Widget _buildRatingBar(ThemeData theme) { | |
var stars = <Widget>[]; | |
for (var i = 1; i <= 5; i++) { | |
var color = i <= rating ? theme.accentColor : Colors.black12; | |
var star = Icon( |
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:cached_network_image/cached_network_image.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_modularization/common/color_helper.dart'; | |
class CardListMovies extends StatelessWidget { | |
final String image; | |
final String vote; | |
final String title; | |
final String releaseDate; |
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
// content | |
Container( | |
width: 260, | |
padding: EdgeInsets.all(10), | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: <Widget>[ | |
// header | |
Container(), | |
SizedBox( |
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
// header | |
Container( | |
child: Row( | |
mainAxisSize: MainAxisSize.max, | |
crossAxisAlignment: CrossAxisAlignment.start, | |
mainAxisAlignment: MainAxisAlignment.start, | |
children: <Widget>[ | |
// circle vote average | |
Container(), | |
SizedBox( |
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
// circle vote average | |
Container( | |
width: 40, | |
height: 40, | |
child: Stack( | |
children: <Widget>[ | |
Center( | |
child: Container( | |
width: 40, | |
height: 40, |
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:cached_network_image/cached_network_image.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_modularization/common/color_helper.dart'; | |
class CardListMovies extends StatelessWidget { | |
final String image; | |
final String vote; | |
final String title; | |
final String releaseDate; |
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; |
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
// poster | |
return Stack( | |
children: [ | |
Padding( | |
padding: EdgeInsets.only(bottom: 140.0), | |
child: ArcBannerImage(imageBanner), | |
), | |
Positioned( | |
bottom: 0.0, | |
left: 16.0, |
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; |