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 'dart:convert'; | |
import 'package:http/http.dart' as http; | |
void main() => runApp(MovieBrowserApp()); | |
const String MOCK_DATA_URL = 'https://gist.githubusercontent.com/egaras/e3b844b3bcd6571e5ab61d963dd9fec2/raw/6f2f0968e9da48ee171bb592c881747bf8c7b217/movie_browser_mockdata.json'; | |
class Movie { | |
final int id; |
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
{ | |
"movies": [ | |
{ | |
"id": 1, | |
"title": "The Shawshank Redemption", | |
"posterPath": "/poster1.jpg", | |
"overview": "Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common decency.", | |
"voteAverage": 8.7, | |
"releaseDate": "1994-09-23", | |
"popularity": 95.5 |
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'; | |
void main() => runApp(MovieBrowserApp()); | |
const String IMAGE_BASE_URL = 'https://image.tmdb.org/t/p/w500'; | |
class Movie { | |
final int id; | |
final String title; | |
final String posterPath; |
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'; | |
void main() => runApp(MovieBrowserApp()); | |
const String IMAGE_BASE_URL = 'https://image.tmdb.org/t/p/w500'; | |
class Movie { | |
final int id; | |
final String title; | |
final String posterPath; |
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'; | |
void main() => runApp(MovieBrowserApp()); | |
const String IMAGE_BASE_URL = 'https://image.tmdb.org/t/p/w500'; | |
class Movie { | |
final int id; | |
final String title; | |
final String posterPath; |