showResetFaultsTimerMessageDialog function
- BuildContext context
Show a message that explains the reset fault timer which prevents users from resetting faults remotely right after a fault occurred.
Implementation
Future<void> showResetFaultsTimerMessageDialog(BuildContext context) {
return showDialog(
context: context,
builder: (context) => AlertDialog(
title: const DialogTitle(child: SizedBox.shrink()),
content: AppMessage(
icon: const Icon(Icons.av_timer),
title: Text(context.sharedL10n.tryAgainSoon),
content: Text(
context.sharedL10n.faultDetected,
),
button: null,
),
),
);
}