Skip to content

Commit

Permalink
style: add signup screen and validators
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubits-01 committed Feb 17, 2024
1 parent edb7f15 commit cd06c58
Show file tree
Hide file tree
Showing 14 changed files with 379 additions and 108 deletions.
Binary file modified android/app/src/main/res/drawable-v21/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion android/app/src/main/res/values-v31/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<item name="android:windowFullscreen">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#ffd694</item>
<item name="android:windowSplashScreenBackground">#f5f5f5</item>
<item name="android:windowSplashScreenBrandingImage">@drawable/android12branding</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
</style>
Expand Down
1 change: 1 addition & 0 deletions assets/illustrations/undraw_not_found_re_bh2e.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/illustrations/undraw_warning_re_eoyh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 3 additions & 8 deletions flutter_native_splash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ flutter_native_splash:
# splash screen to a png image. This is useful for gradients. The image will be stretch to the
# size of the app. Only one parameter can be used, color and background_image cannot both be set.

# A warm, light shade of yellow-orange. It can be described as a soft,
# creamy yellow with a hint of orange.
color: "#ffd694"
color: "#f5f5f5"
#background_image: "assets/background.png"

# Optional parameters are listed below. To enable a parameter, uncomment the line by removing
Expand Down Expand Up @@ -60,11 +58,8 @@ flutter_native_splash:
# App icon without an icon background: This should be 1152×1152 pixels, and fit within a circle
# 768 pixels in diameter.
image: assets/logos/sg_scholars_guide_logo-transformed-960x960.png

# Splash screen background color.
# A warm, light shade of yellow-orange. It can be described as a soft,
# creamy yellow with a hint of orange.
color: "#ffd694"

color: "#f5f5f5"

# App icon background color.
#icon_background_color: "#111111"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions lib/core/features/auth/presentation/screens/login_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ class _LoginFormState extends State<LoginForm> {
labelText: 'Password',
hintText: 'Enter your password',
border: const OutlineInputBorder(),
suffixIcon: IconButton(
suffixIcon: TextButton(
onPressed: () {
setState(() {
_isPasswordVisible = !_isPasswordVisible;
});
},
icon: _isPasswordVisible
child: _isPasswordVisible
? const Icon(Icons.visibility)
: const Icon(Icons.visibility_off),
),
Expand Down Expand Up @@ -187,7 +187,7 @@ class _LoginFormState extends State<LoginForm> {
children: <Widget>[
const Text('Don\'t have an account? '),
TextButton(
onPressed: () {},
onPressed: () => GoRouter.of(context).go('/signup'),
child: const Text('Sign up'),
),
],
Expand Down
Loading

0 comments on commit cd06c58

Please sign in to comment.