Skip to content

Commit

Permalink
some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianLa0616 committed May 5, 2024
1 parent e9b4559 commit e25bfe5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
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

0 comments on commit e25bfe5

Please sign in to comment.