import 'package:gluestack_ui/gluestack_ui.dart';
GSButton(
size: GSButtonSizes.$lg,
child: const GSButtonText(text: "Open Bottom Sheet"),
onPressed: () {
GSModalBottomSheet.showModalBottomSheet<void>(
context: context,
builder: (BuildContext context) {
return SizedBox(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
const GSText(text: "MODAL BOTTOM SHEET"),
const SizedBox(
height: 100,
),
GSButton(
variant: GSButtonVariants.outline,
size: GSButtonSizes.$md,
onPressed: () {
Navigator.of(context).pop();
},
child: const GSButtonText(text: "Close"),
)
],
),
),
);
},
);
},
),
To use this component in your project, include the following import statement in your file.