[mob][photos] resolved PR comments

This commit is contained in:
Aman Raj Singh Mourya 2024-06-20 12:57:14 +05:30
parent 39d232a937
commit fc7e7f4c88
4 changed files with 5 additions and 8 deletions

View File

@ -46,7 +46,7 @@ class TextInputWidget extends StatefulWidget {
final ValueNotifier? isEmptyNotifier;
final List<TextInputFormatter>? textInputFormatter;
final TextInputType? textInputType;
final bool? enableFillColor;
final bool enableFillColor;
const TextInputWidget({
this.onSubmit,
this.onChange,

View File

@ -83,13 +83,8 @@ class _LockScreenOptionState extends State<LockScreenOption> {
}
Future<void> _onToggleSwitch() async {
if (appLock == false && !(isPasswordEnabled || isPinEnabled)) {
AppLock.of(context)!.setEnabled(!appLock);
await Configuration.instance.setShouldShowLockScreen(!appLock);
} else {
AppLock.of(context)!.setEnabled(!appLock);
await Configuration.instance.setShouldShowLockScreen(!appLock);
}
AppLock.of(context)!.setEnabled(!appLock);
await Configuration.instance.setShouldShowLockScreen(!appLock);
await _configuration.removePinAndPassword();
setState(() {
isPasswordEnabled = _configuration.isPasswordSet();

View File

@ -21,6 +21,7 @@ class LockScreenOptionConfirmPassword extends StatefulWidget {
class _LockScreenOptionConfirmPasswordState
extends State<LockScreenOptionConfirmPassword> {
/// _confirmPasswordController is disposed by the [TextInputWidget]
final _confirmPasswordController = TextEditingController(text: null);
final Configuration _configuration = Configuration.instance;
final _focusNode = FocusNode();

View File

@ -21,6 +21,7 @@ class LockScreenOptionPassword extends StatefulWidget {
}
class _LockScreenOptionPasswordState extends State<LockScreenOptionPassword> {
/// _passwordController is disposed by the [TextInputWidget]
final _passwordController = TextEditingController(text: null);
final _focusNode = FocusNode();
final _isFormValid = ValueNotifier<bool>(false);