Skip to content

anindya-vedant/medicineappflutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medico (Medicine booking app)

This is a dummy medicine booking mobile app that I developed while trying to learn Flutter. The frontend of the app is developed using Flutter whereas for the backend Firebase has been made use of.

Quick Overview -

  • Login options
  • Homescreen (composition/design)
  • Medicine Description page
  • Cart
  • Order Completion
  • Map
  • Known bugs/issues
  • Future updates

The landing page of the looks like this


Login Options

Currently the app has 2 login methods: -

  • Via Phone Number
  • Via Facebook
Via Phone Number

If the user selects the option to login via phone number it will redirect you to a page where it will ask for your phone number which when entered calls a Firebase authentication method which will automatically send a 6 digit OTP to the entered mobile number.

Note: - The firebase authentication method requires the entire phone, meaning it should include country code as well. Since I am based out of India, the current country I have set is +91, if you plan on using this app outside of India then you may need to change the country code in the method

Via Facebook

If the user selects the option to login via Facebook, an embedded web browser shall open up which wil then ask the user for their Facebook credentials (only for login purposes).

Note: - There is no registration page for the app since it is not required. Even when the user opts for phone number login and enters a new phone number that is not present in the Firebase database, it automatically registers the new number.


Homescreen

For fetching and displaying data on the home screen FutureBuilder() has been used since the list of the medicine is static (as of now). Hence a grid view for each document in the firebase collection of the medicine list is opted for, as the look

Composition

The details that comprise the home screen are some basic details. A welcome greeting, a search bar, a catalog and a cart button, and a list of the medicine that is fetched from Firebase.

Design

The design of the page is also a minimalistic design (see video below), and to better suit the display of the list of the medicine, a grid view has been utilized rather than a list view

Homescreen.layout.mp4

Medicine Description Page

Every container containing one document of the list of the medicine, in other words, every box that has medicine listed on the homes page has a GestureDetector() wrapped around it which gets triggerd by the onTap() feature. When tapped on, the app redirects to a page which has a set template (see image below) and fetches the data from the respective document of the medicine and displays it on the page.

The Medicine Description Page also has the add to cart feature on it which when pressed adds the medicine to the cart (collection of the firebase) specific to the user that is logged in. The way this bifurcation is achieved is by fetching the user id from the firebase and then creating collection based on the user id.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

A medicine booking app in Flutter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages