Skip to content

Instantly share code, notes, and snippets.

View egaras's full-sized avatar

Ehab Garas egaras

  • Zalando
  • Berlin, Germany
View GitHub Profile
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;
{
"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
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;
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;
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;