Giter Club home page Giter Club logo

flutter-cars's Introduction

Flutter Cars

A simple Car Rental application using Flutter and the CarTrawler API. This project/app was built as a means to learn Dart & Flutter. I have no intention of releasing.

alt text

You can watch a demo video here

Getting Started

This app is built using Flutter, Google's open-source UI SDK. If you are not familiar with Dart/Flutter, here are a few resources to get you started:

Prerequisites

This project requires 2 keys:

  1. A CarTrawler Client ID. Required to communicate with CarTrawler's API.
  2. A Google Maps API key. Needed for location autocomplete and map widget. Follow these steps to acquire one.

Once you have these 2 keys. Add them to "lib/settings_example.dart" and rename this file to simply "settings.dart".

Note: The CarTrawler API comes with a locations endpoint. A !todo is to use this instead than Google for the location autocomplete.

Dependencies

Once your keys are ready, run Pub get to add the following dependencies:

  • http: Used to communicate with APIs.
  • flutter_google_places: Used for locations autocomplete.
  • google_maps_webservice: Used for locations autocomplete.
  • google_maps_flutter: Used for map widget.
  • intl: Used for localisation (dates mostly).
  • webview_flutter: Used to load e-voucher.
  • sqflite: Used to store booked cars.
  • path_provider: Used to create DB.
  • cached_network_image: Used to cache and lazy load images.
  • progress_dialog: Used to show progress modal when making booking.

App screens / Flow

  • Home screen/search screen: Form to allow users to input their search criteria.
  • Search Results screen: Displays cars at selected location/dates/times.
  • Car details screen: Show full details of the selected car.
  • Driver details screen: Form to allow users to input their details (Name, email and phone).
  • Confirmation screen: Show details of booked car.
  • Voucher screen: Load webview containing e-voucher.
  • My bookings screen: Show cars booked through app.
  • Terms screen: Show car/supplier terms & conditions.

Todos

  • Add more information to car details/confirmation screens ie Fuel policy.
  • Better merchandising, show offers, strike-through pricing etc.
  • Payment form so you can book pre paid content.
  • Update location/maps functionality to use CarTrawler's API thus removing the Google dependency (and cost!)
  • Store booked cars on server rather than SQLite DB.
  • Implement an Insurance screen.

Demo APK

You can download an APK from one of the following links:

CarTrawler Native SDK

This project is inspired by CarTrawler's amazing native SDK. Docs can be found here

flutter-cars's People

Contributors

simondarcy 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.