fix: firestore rules pour vehicules/depots et selection autocomplete overlay
This commit is contained in:
@@ -22,6 +22,17 @@ service cloud.firestore {
|
|||||||
allow read, write: if false;
|
allow read, write: if false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Autoriser l'accès aux collections de configuration de l'application
|
||||||
|
match /depots/{document=**} {
|
||||||
|
allow read, write: if request.auth != null;
|
||||||
|
}
|
||||||
|
match /vehicles/{document=**} {
|
||||||
|
allow read, write: if request.auth != null;
|
||||||
|
}
|
||||||
|
match /app_config/{document=**} {
|
||||||
|
allow read, write: if request.auth != null;
|
||||||
|
}
|
||||||
|
|
||||||
// ========================================================================
|
// ========================================================================
|
||||||
// EXCEPTIONS OPTIONNELLES pour les listeners temps réel
|
// EXCEPTIONS OPTIONNELLES pour les listeners temps réel
|
||||||
// ========================================================================
|
// ========================================================================
|
||||||
|
|||||||
@@ -41,7 +41,11 @@ class _AddressAutocompleteFieldState extends State<AddressAutocompleteField> {
|
|||||||
widget.controller.addListener(_onTextChanged);
|
widget.controller.addListener(_onTextChanged);
|
||||||
_focusNode.addListener(() {
|
_focusNode.addListener(() {
|
||||||
if (!_focusNode.hasFocus) {
|
if (!_focusNode.hasFocus) {
|
||||||
_removeOverlay();
|
Future.delayed(const Duration(milliseconds: 200), () {
|
||||||
|
if (mounted && !_focusNode.hasFocus) {
|
||||||
|
_removeOverlay();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user