1 Star 0 Fork 0

lz / fmovies

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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.

This app is not released in production because it is just a showcase what you can do with Flutter. We started this project as a playground for learning Dart and Flutter framework.

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. Clone 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.
MIT License Copyright (c) 2019 Martian & Machine Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Dart 等 5 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/lz1/fmovies.git
git@gitee.com:lz1/fmovies.git
lz1
fmovies
fmovies
master

搜索帮助