import 'package:gluestack_ui/gluestack_ui.dart';
GSVStack(
mainAxisAlignment: MainAxisAlignment.center,
isReversed: false,
space: GSSpaces.$none,
children: [
GSBox(
style: GSStyle(height: 100, width: 100, color: $GSColors.blue300),
child: const Text('1'),
),
GSBox(
style: GSStyle(height: 100, width: 100, color: $GSColors.blue400),
child: const Text('2'),
),
GSBox(
style: GSStyle(height: 100, width: 100, color: $GSColors.blue500),
child: const Text('3'),
),
],
)
import "package:gluestack_ui/gluestack_ui.dart"
Parameters | Type | Default | Description |
---|---|---|---|
space | GSSpaces | - | It sets the space between children. |
reversed | boolean | - | When true, it places the HStack items in reverse direction. |
import 'package:gluestack_ui/gluestack_ui.dart';
GSVStack(
mainAxisAlignment: MainAxisAlignment.center,
isReversed: true,
space: GSSpaces.$none,
children: [
GSBox(
style: GSStyle(height: 100, width: 100, color: $GSColors.blue300),
child: const Text('1'),
),
GSBox(
style: GSStyle(height: 100, width: 100, color: $GSColors.blue400),
child: const Text('2'),
),
GSBox(
style: GSStyle(height: 100, width: 100, color: $GSColors.blue500),
child: const Text('3'),
),
],
)