Skip to content

Commit

Permalink
Added documentation for login related pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Shengle-Dai committed Nov 16, 2024
1 parent 3b92623 commit 1b872aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions game/lib/interests/interests_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import 'package:google_sign_in/google_sign_in.dart';
import 'package:game/utils/utility_functions.dart';
import 'package:flutter_svg/flutter_svg.dart';

/// This page allows the user to select their interests. Connection to backend
/// (creating the user) happens here.
class InterestsPageWidget extends StatefulWidget {
InterestsPageWidget(
{Key? key,
Expand Down
4 changes: 4 additions & 0 deletions game/lib/register_page/register_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import 'package:game/details_page/details_page.dart';
import 'package:google_sign_in/google_sign_in.dart';
import 'package:flutter_svg/flutter_svg.dart';

/// If the google-login user is not registered, this page will be displayed.
/// The user will be asked to select their enrollment type. The user is created
/// only when they fill all required information (at registerpage -> details_page
/// -> interests_page).
class RegisterPageWidget extends StatefulWidget {
final GoogleSignInAccount? user;
final String? idToken;
Expand Down

0 comments on commit 1b872aa

Please sign in to comment.