UI_CHNGS_TravelPolcy
This commit is contained in:
parent
020e890dae
commit
f9a3cbd91b
@ -49,10 +49,16 @@ class _LoginWidgetState extends State<LoginWidget> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
|
_clearAllFields();
|
||||||
|
|
||||||
Future.delayed(Duration(milliseconds: 300), () {
|
Future.delayed(Duration(milliseconds: 500), () {
|
||||||
setState(() {
|
// target only password fields
|
||||||
_moved = true;
|
html.document.querySelectorAll('input[type=password]').forEach((input) {
|
||||||
|
input.setAttribute('autocomplete', 'one-time-code'); // or "off"
|
||||||
|
input.setAttribute(
|
||||||
|
'name',
|
||||||
|
'fake-password',
|
||||||
|
); // prevent matching stored creds
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -363,6 +369,8 @@ class _LoginWidgetState extends State<LoginWidget> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _clearAllFields() {
|
void _clearAllFields() {
|
||||||
|
print("CLEAR ALL Fields");
|
||||||
|
|
||||||
_emailController.clear();
|
_emailController.clear();
|
||||||
_passwordController.clear();
|
_passwordController.clear();
|
||||||
_otpController.clear();
|
_otpController.clear();
|
||||||
@ -600,6 +608,7 @@ class _LoginWidgetState extends State<LoginWidget> {
|
|||||||
),
|
),
|
||||||
obscureText: _obscureText,
|
obscureText: _obscureText,
|
||||||
textInputAction: TextInputAction.done,
|
textInputAction: TextInputAction.done,
|
||||||
|
autofillHints: const [],
|
||||||
decoration: _inputDecoration(
|
decoration: _inputDecoration(
|
||||||
"Enter your password",
|
"Enter your password",
|
||||||
).copyWith(
|
).copyWith(
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
3226
lib/Screens/policy/policyCriteria26Aug.dart
Normal file
3226
lib/Screens/policy/policyCriteria26Aug.dart
Normal file
File diff suppressed because it is too large
Load Diff
3722
lib/Screens/policy/policyCriteria29Aug
Normal file
3722
lib/Screens/policy/policyCriteria29Aug
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user