import 'package:gluestack_ui/gluestack_ui.dart';
GSLink(
style: GSStyle(),
url: 'https://gluestack.io/',
text: const GSLinkText(text: 'gluestack'),
)
import "package:gluestack_ui/gluestack_ui.dart"
Parameters | Type | Default | Description |
---|---|---|---|
url | String | - | URL that should be opened on Link press. |
isExternal | bool | false | If true, link will be opened in new tab on web. |
isHovered | boolean | false | When true, the link displays a hover state. |
import 'package:gluestack_ui/gluestack_ui.dart';
GSHStack(
children: [
const GSText(text: 'Design inspiration from'),
const SizedBox(width: 10),
GSLink(
style: GSStyle(),
url: 'https://gluestack.io/',
text: GSLinkText(
text: 'gluestack',
style: GSStyle(textStyle: const TextStyle(fontSize: 18)),
),
),
],
)
import 'package:gluestack_ui/gluestack_ui.dart';
GSHStack(
children: [
const GSText(text: 'Go to'),
const SizedBox(width: 10),
GSLink(
style: GSStyle(),
url: 'https://gluestack.io/',
text: GSLinkText(
text: 'gluestack',
style: GSStyle(textStyle: const TextStyle(fontSize: 18)),
),
),
const SizedBox(width: 10),
const GSIcon(icon: Icons.arrow_circle_right_outlined),
],
)