Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
Bump Deps, Line Endings
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Feb 12, 2022
1 parent e7bcbd3 commit d2b484a
Show file tree
Hide file tree
Showing 41 changed files with 2,638 additions and 2,514 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,10 @@ app.*.map.json
/android/app/release

.vscode

# กาว LaTeX

*.aux
*.out
*.toc
*.pdf
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ The app is incomplete as it's only used to show our idea.
- iOS 🟡 (No Device to test or run)

- Android 🟢 (Minimum 5.0 Recommended 11)

## Develop Environment

- Flutter 2.10 on Windows 11 with latest Android SDK

- **LaTeX**: Compiled with `XeLaTeX` on Linux (Ubuntu 20.04)
5 changes: 4 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 30
// Android 12
compileSdkVersion 31

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -43,7 +44,9 @@ android {

defaultConfig {
applicationId "com.food_busters.food_busters"
// Android 5
minSdkVersion 21
// Android 11
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.6.10'
repositories {
google()
mavenCentral()
Expand Down
87 changes: 87 additions & 0 deletions docs/manual.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
\documentclass[a4paper,12pt]{article}

\usepackage{style}

\begin{document}

\title{\textbf{Food Busters Prototype Mobile App Manual}}

\author{Nutthapat Pongtanyavichai, Developer of Food Busters}

\maketitle
\tableofcontents

\section{Disclaimer}

This is prototype app focuses on concept, interface \& UI, and basic logic flow of the app.
The goal of this prototype is to show the concept and test that concept with real users for feedback.
Some features are not properly implemented yet.
We will go along each features in this manual.

\section{Installation}

This prototype app by specification, supports from Android 5.
However, I recommend using Android 11 or later.
I need to inform you that we does not have many devices to do the testing.
We are sorry if the app doesn't work as intended for you.

\section{Download the App}

% todo Change download link to newer version
\begin{simplechar}
Download the apk file from the link \href{https://github.com/Food-Busters/food_busters/releases/download/1.0.301/food_busters-1.0.301-arm64-v8a.apk}{HERE} or scan below QR Code
\end{simplechar}

SPACE

HERE

IS

PLACE

HOLDER

FOR

QR

CODE

\textbf{Note}: The app is not signed, there may be a warning from Play Protect.

\section{Login \& Register}

As mention earlier that some features are not properly implemented with the reason given.
Login \& Register is one of them. \\

Any non-empty Username and Password will work here.

\section{Main Feature: SCAN}

Press Scan to enter Scan Menu

/* Images Here */

Based on current concept of our app, you will need to scan two times per meal,
\textbf{before} and \textbf{after} the meal. The AI \textit{(that doesn't exist yet)} will
process the images and gives you insight and analysis of your meal.

\section{Main Feature: POINTS \& REWARDS}

Points \& Rewards

\section{Main Feature: MY RECORD}

Record

\section{Main Feature: MISSIONS}

Missions

\section{Main Feature: LEADERBOARD}

Compete

\end{document}

20 changes: 20 additions & 0 deletions docs/style.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
\usepackage[
a4paper,
total={170mm,257mm},
left=20mm,
top=20mm
]{geometry}

\usepackage{hyperref}

\hypersetup{colorlinks=true, urlcolor=blue}

\newenvironment{simplechar}{
\catcode`\$=12
\catcode`\&=12
\catcode`\#=12
\catcode`\^=12
\catcode`\_=12
\catcode`\~=12
\catcode`\%=12
}{}
30 changes: 15 additions & 15 deletions lib/components/buttons.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import "package:flutter/material.dart";
import "package:flutter_gen/gen_l10n/app_localizations.dart";
import "package:food_busters/styles/styles.dart";

Widget backHomeBtn(BuildContext context, AppLocalizations text) =>
ElevatedButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Text(
text.back_to_home,
style: const TextStyle(fontSize: 18),
),
style: loginRegisterBtn,
);
import "package:flutter/material.dart";
import "package:flutter_gen/gen_l10n/app_localizations.dart";
import "package:food_busters/styles/styles.dart";

Widget backHomeBtn(BuildContext context, AppLocalizations text) =>
ElevatedButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Text(
text.back_to_home,
style: const TextStyle(fontSize: 18),
),
style: loginRegisterBtn,
);
118 changes: 59 additions & 59 deletions lib/components/exchange_dialog.dart
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
import "package:flutter/material.dart";
import "package:flutter_gen/gen_l10n/app_localizations.dart";
import "package:food_busters/styles/styles.dart";

AlertDialog exchangeSuccess(
AppLocalizations text,
BuildContext context, {
bool showQR = false,
}) =>
AlertDialog(
title: Text(text.exchange.toUpperCase(), textAlign: TextAlign.center),
backgroundColor: lightGreen,
content: showQR
? Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(text.exchange_complete),
Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Image.asset("assets/images/dummy_QR.png"),
),
Text(text.use_this_qr, style: const TextStyle(fontSize: 12)),
],
)
: Text(text.exchange_complete),
actions: [
TextButton(
child: Text(
text.window_close,
style: const TextStyle(
color: Colors.black,
),
),
onPressed: () {
Navigator.of(context).pop();
},
),
],
);

AlertDialog exchangeFailed(AppLocalizations text, BuildContext context) =>
AlertDialog(
title: Text(text.exchange.toUpperCase(), textAlign: TextAlign.center),
backgroundColor: rose,
content: Text(text.exchange_failed),
actions: [
TextButton(
child: Text(
text.window_close,
style: const TextStyle(
color: Colors.black,
),
),
onPressed: () {
Navigator.of(context).pop();
},
),
],
);
import "package:flutter/material.dart";
import "package:flutter_gen/gen_l10n/app_localizations.dart";
import "package:food_busters/styles/styles.dart";

AlertDialog exchangeSuccess(
AppLocalizations text,
BuildContext context, {
bool showQR = false,
}) =>
AlertDialog(
title: Text(text.exchange.toUpperCase(), textAlign: TextAlign.center),
backgroundColor: lightGreen,
content: showQR
? Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(text.exchange_complete),
Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Image.asset("assets/images/dummy_QR.png"),
),
Text(text.use_this_qr, style: const TextStyle(fontSize: 12)),
],
)
: Text(text.exchange_complete),
actions: [
TextButton(
child: Text(
text.window_close,
style: const TextStyle(
color: Colors.black,
),
),
onPressed: () {
Navigator.of(context).pop();
},
),
],
);

AlertDialog exchangeFailed(AppLocalizations text, BuildContext context) =>
AlertDialog(
title: Text(text.exchange.toUpperCase(), textAlign: TextAlign.center),
backgroundColor: rose,
content: Text(text.exchange_failed),
actions: [
TextButton(
child: Text(
text.window_close,
style: const TextStyle(
color: Colors.black,
),
),
onPressed: () {
Navigator.of(context).pop();
},
),
],
);
Loading

0 comments on commit d2b484a

Please sign in to comment.