mirror of
https://github.com/ente-io/ente.git
synced 2025-08-07 15:09:09 +00:00
[mob][photos] resolved PR comments
This commit is contained in:
parent
39d232a937
commit
fc7e7f4c88
@ -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,
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user