This is an illustration of a Themed GSCenter widget with default configuration.
import 'package:gluestack_ui/gluestack_ui.dart';
GSCenter(
style: GSStyle(
height: 150,
width: 300,
bg: $GSColors.primary500,
),
child: const GSCenter(
child: const GSText(
text: 'This is the Center',
),
),
)
API Reference
Import
To use this component in your project, include the following import statement in your file.
import "package:gluestack_ui/gluestack_ui.dart"
This section provides a comprehensive reference list for the widget parameters, detailing descriptions, properties, types, and default behavior for easy project integration.
GSCenter
It inherits all the properties of Flutter's
Center widget.