Flutter showcase app

admin

fmovies - Flutter showcase app

fmovies – Flutter showcase app

fmovies is a multiplatform app for browsing new movies and fetching nearest cinemas. It is completely written in Dart and Flutter framework using BLoC pattern.

Features

  • list of new movies – Now playing movies from TMDB API
  • favorites list – List of favorite movies from app database
  • map with nearby cinemas – Google map connected with Places API to fetch nearest cinemas
  • movie details – Movie detail from TMDB API

Building the project

First of all you will need to setup your development environment. To do that go to the official Flutter documentation and follow ve. After flutter doctor says everything is fine follow next steps:

  1. lone the project to your machine
  2. Open project with your IDE
  3. Run flutter packages get
  4. Add API key for Google Maps
  • Android: Specify your API key in the AndroidManifest.xml
<manifest>
  <application>
    <meta-data android:name="com.google.android.geo.API_KEY"
               android:value="YOUR KEY HERE"/>
   </application>
</manifest>
  • iOS: Specify your API key in the application delegate ios/Runner/AppDelegate.swift:
import UIKit
import Flutter
import GoogleMaps

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
  ) -> Bool {
    GMSServices.provideAPIKey("YOUR KEY HERE")
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}
  1. Create new file secrets.json in /assets directory and add TMDB API key and Places API key
{
  "tmdb_key": "random_key",
  "places_key": "random_key"
}
  1. Run the app on your simulator/emulator or device.

Plugins

  • flutter_bloc – A Flutter package that helps implement the BLoC pattern.
  • google_maps_flutter – A Flutter plugin that provides a Google Maps widget.
  • dio – A powerful Http client for Dart, which supports Interceptors, Global configuration, FormData, Request Cancellation, File downloading, Timeout etc.
  • get_it – Simple Service Locator for Dart and Flutter projects with some additional goodies highly inspired by Splat.
  • geolocator – A Flutter geolocation plugin which provides easy access to the platform specific location services (FusedLocationProviderClient or if not available the LocationManager on Android and CLLocationManager on iOS).
  • moor_flutter – Moor is an easy to use, reactive persistence library for Flutter apps. Define your database tables in pure Dart and enjoy a fluent query API, auto-updating streams and more!
  • flare_flutter – Flutter runtime for Flare, depends on flare_dart.
  • location_permissions – The Location Permissions plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to check and request permissions to access location services.
  • auto_size_text – Flutter widget that automatically resizes text to fit perfectly within its bounds.
  • animated_text_kit – A flutter package which contains a collection of some cool and awesome text animations.

Source Credit Url : https://github.com/martianandmachine/fmovies

Leave a Comment