mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
added an alert dialog function call in context extension
This commit is contained in:
@ -43,4 +43,13 @@ extension ContextExtension on BuildContext {
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
void customAlertDialog({required Widget child, required double height}) {
|
||||
showDialog(
|
||||
context: this,
|
||||
builder: (BuildContext context) {
|
||||
return Dialog(child: SizedBox(height: height, child: child));
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user