Giter Site home page Giter Site logo

mzdm / virtual_traveller_flutter Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 4.0 7.56 MB

Cross-platform Application (Mobile, Web, Desktop): Travel virtually and discover interesting destinations.

License: MIT License

Kotlin 0.05% Swift 0.15% Objective-C 0.01% Dart 89.18% HTML 0.48% CMake 2.94% C++ 6.81% C 0.36% CSS 0.02%
flutter-apps flutter flutter-app flights tourism amadeus android ios web desktop

virtual_traveller_flutter's Introduction

 			                    -- Virtual Traveller --
				                      WIP
	  APP IS IN THE VERY EARLY DEVELOPMENT PROGRESS - AND DOESN'T REPRESENT THE FINAL STATE

Virtual Traveller

Build    Build codecov

Search for flights and deep dive into large offers of travelling destinations. Discover recommended and popular places. Hop on on the virtual mode to simulate travelling immediately to your desired destination and learn more about it, including interesting information and points of interests! 🚀

Index

Previews

How to run

  1. Clone this repository
  2. Fetch packages:
    flutter pub get
    • Run freezed and json_serializable code generators:
      flutter pub run build_runner build --delete-conflicting-outputs
    • Automatically rebuild on changes with:
      flutter pub run build_runner watch
    • Run on the device:
      flutter run (run in Profile mode if you want to test the performance)
    • Run on the web (make sure you are on the beta channel):
      flutter run -d web
    • Run with flag on the web with better performance (experimental):
      flutter run -d web --release --dart-define=FLUTTER_WEB_USE_SKIA=true
    • Run on the desktop (Windows) (make sure you are on the dev channel):
      flutter run -d windows

NOTE: If you want to use remote APIs instead of local fake data, you need to obtain API key(s). The web preview version uses fake data because it is built from the repository and API keys would get exposed.
Obtain the Amadeus Travel API key here.

Then:

  • place the key to this file: lib/data/data_providers/remote/secrets.dart
  • set quotaSaveMode to false in lib/utils/debug_options.dart

Idea

I wanted to make a flight searching app with interesting suggestions, fully from the scratch. However, due to the current situation with the pandemic, many countries are restricted for some citizens so travelling there isn't possible. This app has virtual travelling mode, which simulates the travelling here, displays interesting information about the desired location, including picture, points of interests and etc. There's a possibility to save the locations, so you can check them out later!

Powered by the Amadeus for Developers API, which fits best for this use and offers also free monthly quota for testing! Amadeus Travel APIs connect you to the richest information in the travel industry.

Visualizing the flow of the app

visualizing the flow of the app

App Architecture

Using the bloc library allows us to separate our application into three layers:

  • Presentation
  • Business Logic
  • Data
    • Repository
    • Data Provider
    • Models

State management

There's no unique rule on what to choose because it always depends on many criteria. When it came to deciding on which state management approach to use in my case, I was deciding between Provider and bloc library. Bloc library is already dependant on Provider package so it is fairly similar in terms of a dependency injection (DI) (a single instance of a Cubit or Bloc can be provided to all of the widgets within a subtree). Read more here about bloc library and Provider.

The reasons why I decided to use the bloc library in my case were following:

  • use of the reactive streams, which goes well together with BLoC pattern
  • easy and reliable tests via bloc_test library, which is based on Mockito
  • it isn't only a state management library, but it also helps implement the BLoC (Business Logic Component) design pattern

TODO list

Basics:

  • Features
    • Splash screen
    • Intro slider on the first app launch
    • Home Page Features
      • Change departure location
      • Quick search
        • One-Way flights
        • Destinations
      • Discover most popular / booked travelling destinations based on the current location
      • Recommended destinations based on search history
    • Flight Searching Page Features
      • View search history
      • Search by
        • Type of the way
          • One-Way
          • Round Trip
          • Multi City
        • Dates
          • Departure
          • Return
        • Passengers
          • Adults
          • Kids
          • Infants
    • Flight Result Page Features
      • Switch departure and destination in the search
      • Display quick search query info details
      • View more about the destination
      • Sort by
        • Price
        • Length
        • Number of stops
      • Flight offer details
        • From - To
        • Departure - Arrival date
        • Flight length
        • Flight stops
        • Passengers
        • Price
        • Airplane type
      • Virtual Flight Mode
        • Simulate airplane flying on the map with the timestamps
    • Destination Info Page
      • Save destination to the Watchlist
      • Pictures
      • Average temperature of the past week
      • Safety Rating
      • List nearby Points of Interests Page
        • POI Details Page
          • GPS Coordinates
          • Pictures
      • List nearby Hotels Page
        • Hotel Details Page
          • GPS Coordinates
          • Distance from the city center
          • Stars
          • Description
          • Pictures
          • Tags: Amenities (Wi-Fi, TV, ...), Appliances etc.
    • Watchlist Page
      • Click to view the info about the destination
      • Drag to reorder destinations
      • Swipe to remove
    • Settings Page
      • Change default departure location
      • Language
      • Currency
      • Temperature format
      • Length unit
      • Theme
      • Remove local data
  • Language Support
    • English
    • Czech
    • Portuguese
    • Russian
    • Chinese
    • French
    • German
  • Supported Platforms
    • Mobile (Android & iOS)
    • Web
    • Desktop

Other:

  • Null safety
  • CI / Github Actions
  • Type of tests
    • Unit
    • Widget
    • Integration
  • Test coverage milestones
    • 20%
    • 40%
    • 60%

Dependencies:

UI inspirations

Related recommended resources

Credits

Contribution

The app is still in the development process and isn't suitable for contributions yet.

If you wish to contribute, file an issue with an appropriate tag or propose a PR. If it is a breaking change, please create an issue first.

virtual_traveller_flutter's People

Contributors

msftgits avatar mzdm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.