Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some comments #222

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions game/lib/details_page/details_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import 'package:google_sign_in/google_sign_in.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:game/details_page/dropdown_widget.dart';

/**
* The details page. Allows the user to enter their details. Follows from the RegisterPageWidget.
*/
class DetailsPageWidget extends StatefulWidget {
DetailsPageWidget(
{Key? key,
Expand Down
3 changes: 3 additions & 0 deletions game/lib/loading_page/loading_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import 'package:flutter/material.dart';
import 'package:game/navigation_page/bottom_navbar.dart';
import 'package:game/splash_page/splash_page.dart';

/**
* The loading page. Used to check if the user is already signed in. Directs the user to the corresponding page (HomePage vs SplashPage)
*/
class LoadingPageWidget extends StatelessWidget {
final Future<bool> relogResult;
LoadingPageWidget(this.relogResult, {Key? key}) : super(key: key);
Expand Down
3 changes: 3 additions & 0 deletions game/lib/progress_indicators/circular_progress_indicator.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import 'package:flutter/material.dart';

/**
* A circular progress indicator. Used for loading screens.
*/
class CircularIndicator extends StatelessWidget {
const CircularIndicator({super.key});

Expand Down
5 changes: 5 additions & 0 deletions game/lib/register_page/register_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import 'package:game/details_page/details_page.dart';
import 'package:google_sign_in/google_sign_in.dart';
import 'package:flutter_svg/flutter_svg.dart';

/**
* The register page. Allows the user to select their enrollment type.
* Comes from the SplashPageWidget.
*/
class RegisterPageWidget extends StatefulWidget {
// The user's Google account. Must be kept track of to sign in.
final GoogleSignInAccount? user;
final String? idToken;
RegisterPageWidget(
Expand Down
3 changes: 3 additions & 0 deletions game/lib/splash_page/splash_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import 'package:game/register_page/register_page.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:game/navigation_page/bottom_navbar.dart';

/**
* The splash page. Allows the user to sign in with Google or continue as a guest. SplashPageWidget is skipped if the user is already signed in (account already exists).
*/
class SplashPageWidget extends StatelessWidget {
SplashPageWidget({Key? key}) : super(key: key);
final scaffoldKey = GlobalKey<ScaffoldState>();
Expand Down
Loading