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:
- download the project to your machine
- open project with your ide
- run
flutter packages get
- 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)
}
}
- 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"
}
- 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.
Comments are closed.