import 'package:gluestack_ui/gluestack_ui.dart';
GSHStack(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Padding(
padding: EdgeInsets.all(8.0),
child: Text("Easy"),
),
GSDivider(
orientation: GSOrientations.vertical,
style: GSStyle(height: 30),
),
const Padding(
padding: EdgeInsets.all(8.0),
child: Text("Difficult"),
),
],
)
import "package:gluestack_ui/gluestack_ui.dart"
Name | Value | Default |
---|---|---|
orientation | vertical | horizontal | horizontal |
import 'package:gluestack_ui/gluestack_ui.dart';
GSVStack(
children: [
GSHStack(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const GSText(
text: "Simple",
),
const SizedBox(
width: 10,
),
GSDivider(
orientation: GSOrientations.vertical,
style: GSStyle(
height: 30,
color: $GSColors.rose300,
),
),
const SizedBox(
width: 10,
),
const GSText(
text: "Easy",
),
const SizedBox(
width: 10,
),
GSDivider(
orientation: GSOrientations.vertical,
style: GSStyle(
height: 30,
color: $GSColors.green300,
),
),
const SizedBox(
width: 10,
),
const GSText(
text: "Difficult",
),
],
),
],
)