Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

inkino

a multiplatform dart project movie app with 40% of code sharing between flutter and the web.

inkino is a multiplatform dart app for browsing movies and showtimes for finnkino cinemas.

inkino showcases redux, has an extensive set of automated tests and 40% code sharing between flutter and web. the android & ios apps are made with a single flutter codebase. the progressive web app is made with angulardart. this project is generally something that i believe is a good example of a multiplatform dart project.

get it on google play
get it on the app store
dart project

folder structure

there’s three different folders. each of them is a dart project.

  • core: contains the pure dart business logic, such api communication, redux, xml parsing, sanitization, i18n, models and utilities.
    it also has a great test coverage.
  • mobile: this is the flutter project. it imports core, and it’s a 100% shared codebase for the native android & ios apps that go on app stores.
  • web: the angulardart progressive web app. also imports core, and it’s the thing that is live at https://inkino.app.

to work on these projects, open each one of them in an editor of your choice.

for example, if you want to do a new feature and you do it for the flutter project first, you’d open both core and mobile in separate editor windows.
to clarify, you’d do file -> open... for core and then file -> open... again for mobile.

development environment setup

  • install dart for the web. the customized dart version flutter ships with is not suitable for web development.
  • install webdev by running pub global activate webdev. this requires that you ran your dart installation properly and dart is part of your path.
  • install an ide. you can’t go wrong with webstorm. if that doesn’t tickle your fancy, there are other options too.
  • install the dart plugin for your ide.

finally, if you haven’t already, install flutter.
and the flutter plugin for your ide.
at the time of being, inkino is built with flutter 0.10.2.

if you don’t like ides, you can apparently use emacs or vim too.

building the dart project

renaming the tmdb configuration file

you don’t need a tmdb api key, but the actor images won’t load without it.

if you try to build the project straight away, you’ll get an error complaining that a tmdb_config.dart file is missing.
to resolve that, run this on your terminal in the project root:

cd core/lib/src && mv tmdb_config.dart.sample tmdb_config.dart && cd ../../..

or

if you don’t trust in random bash scripts copied from the internet, you can just rename the tmdb_config.dart.sample to tmdb_config.dart manually.

building from source

first, ensure that you followed the “development environment setup” section above.

  • to run the web project, first run pub get initially, and then webdev serve in the root of the web project.
  • to run the flutter project, open it in your editor and click the play button, or run flutter run on your terminal.

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.