Skip to content

Commit

Permalink
Merge pull request #198 from SCCapstone/commenting-and-bug-fixing
Browse files Browse the repository at this point in the history
pdf and quiz fixes, efficiency
  • Loading branch information
Wsutton424 authored Apr 25, 2023
2 parents 5c30185 + 0ab095d commit 0b49009
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 38 deletions.
28 changes: 24 additions & 4 deletions app/Assets/PDF/How-To-Get-Around-The-Island.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,37 @@ How to Get Around the Island
==================================================


Pohnpei is a tropical Micronesian paradise that lies far from the trodden tourist trail. One of the rainiest and most remote places on Earth, the jungle-clad speck of green is a Garden of Eden that tourism forgot.
Pohnpei is a relatively small island with few paved roads making transportation tricky. Throw in the fact that it’s almost always raining, and you have yourself a transportation nightmare.
But do not fear, as there are a surprising number of economic options for getting around the island.
1.
Rental car
-
This is available from the airport and is relatively cheap however gas on the island is very expensive, so this is not the cheapest way around.
2.
Walking
This is the option lots of people take as the small island is easy to navigate on foot.
3.
Taxi
This is the best option for money and convenience as the fare is relatively cheap to get around the island and they can easily be called any time.

But for avid explorers and lovers of off-beat destinations, Pohnpei offers a diverse array of things to see and do---both above and below sea level. From ancient ruins to pristine mangrove forests and from gushing waterfalls to remote atolls, the Micronesian island is a wonderland of undiscovered gems. 

[Marshall Islands](https://www.erikastravels.com/travel-marshall-islands-majuro-arno-atoll/)

THINGS TO DO IN POHNPEI MICRONESIA
----------------------------------

The Federated States of Micronesia (referred to as the FSM or Micronesia for short) are a cluster of islands spread out over the vast Pacific Ocean. Pohnpei---Micronesia's largest island---is a lush tangle of twisting vines and verdant rainforest. For those who can brave its sopping climate and frequent torrential downpours, it is a hiker's wonderland and an explorer's dream.
The Micronesian islands are a cluster of islands spread out over the vast Pacific Ocean. They are officially known as the Federated States of Micronesia or shortened to FSM.

-

POHNPEI:
Pohnpei, Micronesia's largest island, holds its capital. Most of the citizens speak the native language of Pohnpeian, English or some combination of the two as American military presence on the island brought the language along with missionaries of various different religions.

-

There are many different things to do in Pohnpei such as exploring the lush rainforests, swimming and surfing in the clear pacific ocean or exploring the ancient ruins of Nan Madol.

![Jungle Scenery Micronesia](https://www.erikastravels.com/wp-content/uploads/2019/09/Emerald-Isle-Micronesia.jpg)

Despite being situated..........................
2 changes: 1 addition & 1 deletion app/lib/data/user.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
final username = 'tatiana';
const username = 'tatiana';
10 changes: 5 additions & 5 deletions app/lib/screens/EditProfile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class _MyGridViewState extends State<MyGridView> {
Widget build(BuildContext context) {
return GridView.builder(
physics: const NeverScrollableScrollPhysics(),
padding: EdgeInsets.all(30),
padding: const EdgeInsets.all(30),
shrinkWrap: false,
itemCount: profileImages.length,
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
Expand Down Expand Up @@ -120,15 +120,15 @@ class _EditProfilePageState extends State<EditProfilePage> {
onPressed: () => showDialog(
context: context,
builder: (context) => AlertDialog(
title: Text('Delete Account Confirmation'),
content: Text(
title: const Text('Delete Account Confirmation'),
content: const Text(
'Are you sure you want to delete your account? All data will be lost.'),
actions: [
ElevatedButton(
onPressed: () {
Navigator.pop(context);
},
child: Text('Cancel')),
child: const Text('Cancel')),
ElevatedButton(
style: const ButtonStyle(
backgroundColor:
Expand All @@ -142,7 +142,7 @@ class _EditProfilePageState extends State<EditProfilePage> {
const LoginPage()))
});
},
child: Text('Delete and Sign Out'))
child: const Text('Delete and Sign Out'))
],
),
),
Expand Down
1 change: 0 additions & 1 deletion app/lib/screens/SearchScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:flutter/services.dart';
import 'package:search_page/search_page.dart';
import 'package:pohnpeian_language_app/theme/style.dart' as customStyle;
import 'package:url_launcher_platform_interface/url_launcher_platform_interface.dart';
import 'package:flutter_pdfview/flutter_pdfview.dart';
import 'package:flutter_markdown/flutter_markdown.dart';

class SearchItem implements Comparable<SearchItem> {
Expand Down
26 changes: 5 additions & 21 deletions app/lib/screens/SignUpScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,9 @@ class SignUpPage extends StatelessWidget {
const SignUpPage({Key? key}) : super(key: key);

static const String _title = "Welcome to Pweek";
static const Color a1 = Color.fromRGBO(117, 178, 221, .5);
static const Color a2 = Color.fromRGBO(117, 178, 221, .75);
static const Color a3 = Color.fromRGBO(117, 178, 221, 1.0);
static const Color b1 = Color.fromRGBO(45, 211, 112, .5);
static const Color b2 = Color.fromRGBO(45, 211, 112, .75);

static const Color b3 = Color.fromRGBO(45, 211, 112, 1.0);
static const Color c1 = Color.fromRGBO(38, 77, 105, .5);
static const Color c2 = Color.fromRGBO(38, 77, 105, .75);
static const Color c3 = Color.fromRGBO(38, 77, 105, 1.0);
static const Color d = Color.fromRGBO(146, 148, 156, 1.0);
static const background = Color.fromARGB(219, 39, 183, 196);


@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -55,17 +47,9 @@ class _SignUpPage extends State<SignUpPageState> {
TextEditingController cpasswordController = TextEditingController();
TextEditingController emailController = TextEditingController();

static const a1 = Color.fromRGBO(117, 178, 221, .5);
static const a2 = Color.fromRGBO(117, 178, 221, .75);
static const a3 = Color.fromRGBO(117, 178, 221, 1.0);
static const b1 = Color.fromRGBO(45, 211, 112, .5);
static const b2 = Color.fromRGBO(45, 211, 112, .75);

static const b3 = Color.fromRGBO(45, 211, 112, 1.0);
static const c1 = Color.fromRGBO(38, 77, 105, .5);
static const c2 = Color.fromRGBO(38, 77, 105, .75);
static const c3 = Color.fromRGBO(38, 77, 105, 1.0);
static const d = Color.fromRGBO(146, 148, 156, 1.0);
static const background = Color.fromARGB(219, 39, 183, 196);


// Create a new user with Email and password using text inside the
// Email and password controllers
Expand Down Expand Up @@ -205,7 +189,7 @@ class _SignUpPage extends State<SignUpPageState> {
style: ElevatedButton.styleFrom(
backgroundColor: (b3),
),
child: Text('Sign Up!'),
child: const Text('Sign Up!'),
onPressed: () {
if (passwordController.text.length < 6) {
// Toast if password is too short
Expand Down
5 changes: 1 addition & 4 deletions app/lib/screens/loginPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ class _LoginPage extends State<LoginPageState> {
TextEditingController passwordController = TextEditingController();

//The login button color
static const Color a = Color.fromRGBO(45, 211, 112, 1.0);
static const Color b = Color.fromRGBO(45, 211, 112, 1.0);
//Sign up button color
static const Color c = Color.fromRGBO(45, 211, 112, 1.0);
static const Color d = Color.fromRGBO(45, 211, 112, 1.0);


@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions app/lib/screens/pages/result_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ class _ResultPageState extends State<ResultPage> {
Text("Your score: $_correctAnswer / $_totalQuestion"),
const SizedBox(height: 16.0),
ElevatedButton(
child: const Text('Retry Quiz'),
onPressed: () {
child: const Text('Return to Menu'),
onPressed: () {
NavigatorState navigator = Navigator.of(context);
for (int i = 0; i < _totalQuestion; i++) {
if (!navigator.canPop()) break;
Expand Down

0 comments on commit 0b49009

Please sign in to comment.