mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-23 22:51:00 -04:00
deadlock cleanup
This commit is contained in:
parent
23867a1784
commit
2141dbff21
40 changed files with 254 additions and 253 deletions
|
@ -11,6 +11,7 @@ AlertStyle _alertStyle(BuildContext context) {
|
|||
|
||||
return AlertStyle(
|
||||
animationType: AnimationType.grow,
|
||||
isCloseButton: false,
|
||||
//animationDuration: const Duration(milliseconds: 200),
|
||||
alertBorder: RoundedRectangleBorder(
|
||||
side: !scaleConfig.useVisualIndicators
|
||||
|
@ -131,7 +132,7 @@ Future<void> showErrorStacktraceModal(
|
|||
);
|
||||
}
|
||||
|
||||
Future<void> showWarningModal(
|
||||
Future<void> showAlertModal(
|
||||
{required BuildContext context,
|
||||
required String title,
|
||||
required String text}) async {
|
||||
|
@ -139,7 +140,7 @@ Future<void> showWarningModal(
|
|||
context: context,
|
||||
style: _alertStyle(context),
|
||||
useRootNavigator: false,
|
||||
type: AlertType.warning,
|
||||
type: AlertType.none,
|
||||
title: title,
|
||||
desc: text,
|
||||
buttons: [
|
||||
|
@ -161,7 +162,7 @@ Future<void> showWarningModal(
|
|||
).show();
|
||||
}
|
||||
|
||||
Future<void> showWarningWidgetModal(
|
||||
Future<void> showAlertWidgetModal(
|
||||
{required BuildContext context,
|
||||
required String title,
|
||||
required Widget child}) async {
|
||||
|
@ -169,7 +170,7 @@ Future<void> showWarningWidgetModal(
|
|||
context: context,
|
||||
style: _alertStyle(context),
|
||||
useRootNavigator: false,
|
||||
type: AlertType.warning,
|
||||
type: AlertType.none,
|
||||
title: title,
|
||||
content: child,
|
||||
buttons: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue