When you need to center-align content, the GSCenter widget comes in handy. It is a layout widget that can be used with other widgets to create complex layouts and positioning.
API Reference
This is an illustration of a Themed GSCenter widget with default configuration.

    import 'package:gluestack_ui/gluestack_ui.dart';

      style: GSStyle(
        height: 150,
        width: 300,
        bg: $GSColors.primary500,
      child: const GSCenter(
        child: const GSText(
          text: 'This is the Center',

API Reference


To use this component in your project, include the following import statement in your file.
import "package:gluestack_ui/gluestack_ui.dart"

Widget Parameters

This section provides a comprehensive reference list for the widget parameters, detailing descriptions, properties, types, and default behavior for easy project integration.


It inherits all the properties of Flutter's Center widget.

Edit this page on GitHub