Skip to content

cshannon3/delawaremakes

Repository files navigation

Delaware Makes

A Platform To Connect Local PPE Manufacturing Efforts with Organizations In Need During the Pandemic

Highlighted Features

Request PPE through the site

home

See All Facilities In Need and Claim Builds

map

Relavent Resources

Getting Started

This site is written in Flutter, a cross-platform UI toolkit from google that uses the Dart programming language.

To get an introduction to Flutter, check out Google's Codelabs that enable you to learn the fundamentals online without downloading anything.

Required Software
If you are interested in contributing, you'll need to download the following software

Flutter Environment Set Up

For this project, we only use Flutter Web, so to get that running on your computer, follow the instructions on Flutter Web Install SDK.

The first step is to download the Flutter SDK, no need to set up the Android or IOS development environments. Once you install the SDK, run the command:

flutter doctor

You should see something similar to what's shown below:

[todo]

Once Flutter is successfully installed, you will need to install Chrome(if it's not already installed) so that you can run your code in the browser during development

Lastly, you will likely want to use Visual Studio Code as your code editor. Go to Visual Studio Code to download the software. Then go to the "extensions" tab on the side and add the flutter extension and dart extension.

[picture below]

Testing Flutter Install
Before you try running this project, make sure flutter is working properly by creating a new project. /* Todo */

Setting Project Up Locally

Project Overview

Project File Structure

  • state/: Directory containing the majority of the logic of the site - AppState- the AppState class contains much of the core logic including initiating the database, handling forms, and dealing with user login - service_locator - I use a package called get_it that enables me to get a specific instance of a class from anywhere in the app. The service locator is where I initiate the classes that I want to be able to access.
  • pages/: All of the website pages are stored in their respective folder. The ___page.dart folder contains the main page component then any page specific components will be in the components folder
  • counters/: Directory models that store count information on the dirrent items(designs, requests etc)
  • main.dart - the app is created in the main.dart file, it is the root of the entire project
  • root_widget.dart - This widget is a wrapper around the current page widget. It includes the appbar and is where overlays are added to the screen.
  • theme.dart - In order to be able to change certian aspects of the design more easily, I've put most of the color and font size info into this file.
lib
├── main.dart
├── root_widget.dart
├── routes.dart
├── theme.dart
├── state
│   ├── service_locator.dart
│   ├── app_state.dart
│   ├── db_interface.dart
│   ├── forms_tabs.dart
│   └── docs_repo.dart
├── pages
│   ├── about_us
│   │    └── about_us_page.dart
│   ├── designs
│   │    └── designs_page.dart
│   ├── profile
│   │    └── profile_page.dart
│   ├── resources
│   │    └── resources_page.dart
│   ├── home
│   |    ├── home_page.dart
│   │    └── components
│   │          ├── count.dart
│   │          ├── intro.dart
│   │          ├── maker_section.dart
│   │          └── request_section.dart
│   ├── locations
│   |    ├── locations.dart
│   │    └── components
│   │          ├── map_widget.dart
│   │          ├── claim_tile.dart
│   │          └── request_tile.dart
├── counters
│   ├── design_counts.dart
│   ├── group_counts.dart
│   ├── org_counts.dart
│   └──  request_counts.dart


Setting Up Project Locally

Dependencies

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors