mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
connected all apis , create functionality is working
This commit is contained in:
@ -47,6 +47,19 @@ extension ContextExtension on BuildContext {
|
||||
);
|
||||
}
|
||||
|
||||
void showCustomSnackbar({required String message, Widget? icon}) {
|
||||
ScaffoldMessenger.of(this).showSnackBar(
|
||||
SnackBar(
|
||||
content: Row(
|
||||
children: [
|
||||
Expanded(child: Text(message)),
|
||||
icon ?? const SizedBox.shrink(),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
void customAlertDialog(
|
||||
{required Widget alertBody,
|
||||
required String title,
|
||||
|
Reference in New Issue
Block a user