Skip to content

Commit 2017f8f

Browse files
committed
bfix: Fix some state errors.
1 parent 659033f commit 2017f8f

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
android:theme="@style/LaunchTheme"
1010
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1111
android:hardwareAccelerated="true"
12+
android:exported="true"
1213
android:windowSoftInputMode="adjustResize">
1314
<!-- Specifies an Android theme to apply to this Activity as soon as
1415
the Android process has started. This theme is visible to the user

lib/presentation/components/inputs/text_input.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class TextInput extends StatelessWidget {
5454
initialValue: controller == null ? initialValue : null,
5555
keyboardType: keyboard,
5656
maxLines: maxLines,
57+
obscureText: obscureText,
5758
onChanged: onChanged,
5859
style: AppStyles.h6.copyWith(color: AppColors.grey3),
5960
textInputAction: action,

lib/presentation/login/bloc/login_bloc.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ class LoginBloc extends Bloc<LoginEvent, LoginState> {
6060

6161
void _toggleDialog(ToggleDialog event, Emitter<LoginState> emit) async {
6262
if (event.email == null) {
63-
emit(state.copyWith(showDialog: !state.showDialog));
63+
emit(state.copyWith(
64+
showDialog: !state.showDialog,
65+
status: const Status(),
66+
));
6467
} else {
6568
if (event.email!.isEmpty) return;
6669
emit(state.copyWith(

lib/presentation/login/widgets/text_fields.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class PasswordField extends StatelessWidget {
3737
),
3838
IconButton(
3939
icon: SvgPicture.asset(
40-
(state.obscurePassword) ? AppAssets.eyeOn : AppAssets.eyeOff,
40+
(state.obscurePassword) ? AppAssets.eyeOff : AppAssets.eyeOn,
4141
color: state.isPasswordFocused
4242
? AppColors.primary
4343
: AppColors.grey1,

0 commit comments

Comments
 (0)