import 'package:gluestack_ui/gluestack_ui.dart';
//...
GSVStack(
children: [
const GSHeader(
centerChild: true,
child: GSText(
text: 'GS Header Sample',
),
),
GSBox(
style: GSStyle(
margin: const EdgeInsets.all(4),
height: 30,
width: double.infinity,
color: $GSColors.amber400,
borderRadius: 12),
),
GSBox(
style: GSStyle(
margin: const EdgeInsets.all(4),
height: 30,
width: double.infinity,
color: $GSColors.red400,
borderRadius: 12),
),
GSBox(
style: GSStyle(
margin: const EdgeInsets.all(4),
height: 30,
width: double.infinity,
color: $GSColors.green400,
borderRadius: 12),
),
],
),
To use this component in your project, include the following import statement in your file.