fixed guardian login edge cases and misleading placeholders on failed loads
This commit is contained in:
@@ -25,6 +25,12 @@ abstract class CapabilitiesState with _$CapabilitiesState {
|
||||
// observed at least once this session. Lets the UI distinguish "still
|
||||
// unknown" from "confirmed not allowed".
|
||||
@Default(false) bool loaded,
|
||||
// True while the last attempt failed. Not persisted: a stale failure from
|
||||
// the previous run must not colour a fresh start. Together with [loaded]
|
||||
// it separates "confirmed no children" from "could not ask".
|
||||
@JsonKey(includeToJson: false, includeFromJson: false)
|
||||
@Default(false)
|
||||
bool loadFailed,
|
||||
}) = _CapabilitiesState;
|
||||
|
||||
factory CapabilitiesState.fromJson(Map<String, Object?> json) =>
|
||||
|
||||
Reference in New Issue
Block a user