mirrored_repositories/latihan-flutter
import 'package:flutter/material.dart';
import 'package:my_app/data/movies/movies.dart';

void main() => runApp(new MyAppp());

class MyAppp extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
      return MaterialApp(
        home: MoviesDetail(),
      );
  }
}
class MoviesDetail extends StatelessWidget{
  Results result;
  MoviesDetail({this.result, Results moviesResult});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: new AppBar(
        title: new Text(result.originalTitle),
      ),
      body: _MoviesDetailBody(moviesResult: result,),
    );
  }
}

class _MoviesDetailBody extends StatefulWidget{
  Results moviesResult;
  _MoviesDetailBody({this.moviesResult});

  @override
  _State createState() => _State();
}

class _State extends State<_MoviesDetailBody> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: <Widget>[
          new Row(
            children: <Widget>[
              new Text(widget.moviesResult.originalTitle),
              new Text(widget.moviesResult.originalTitle)
            ],
          )
        ],
      ),
    );
  }
}

