import 'package:gluestack_ui/gluestack_ui.dart';
GSButton(
size: GSButtonSizes.$lg,
child: const GSButtonText(text: "Click Me"),
onPressed: () {
GSAlertDialog.show(
context,
size: GSAlertDialogSizes.$full,
content: GSAlertDialogContent(
header: GSAlertDialogHeader(
style: GSStyle(
bg: Colors.pink,
),
child: const Text("Header"),
),
body: const GSAlertDialogBody(
child: Text(
"Are you sure you want to deactivate your account? Your data will be permanently removed and cannot be undone."),
),
footer: GSAlertDialogFooter(
child: GSButtonGroup(
buttons: [
GSButton(
action: GSButtonActions.positive,
variant: GSButtonVariants.outline,
child: const Text("Yes"),
onPressed: () {},
),
GSButton(
action: GSButtonActions.negative,
variant: GSButtonVariants.outline,
child: const Text("No"),
onPressed: () {},
),
],
),
),
),
);
},
)
import "package:gluestack_ui/gluestack_ui.dart"
Name | Value | Default |
---|---|---|
size | xs | sm | md | lg | full | md |