import 'package:gluestack_ui/gluestack_ui.dart';
GSTextArea(
size: GSTextAreaSizes.$md,
hintText: "Enter text here",
isDisabled: false,
isInvalid: false,
readOnly: false,
)
import "package:gluestack_ui/gluestack_ui.dart"
Parameters | Type | Default | Description |
---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Changes the size of the Input Text |
isInvalid | bool | false | When true, the input displays an error state. |
isDisabled | bool | false | When true, the input is disabled and cannot be edited. |
isReadOnly | bool | false | If true, the input value cannot be edited. |
Name | Value | Default |
---|---|---|
size | xl | lg | md | sm | md |
import 'package:gluestack_ui/gluestack_ui.dart';
GSVStack(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const GSHeading(text: "Write with me"),
const SizedBox(
height: 10,
),
GSTextArea(
hintText: "Once upon a time...",
style: GSStyle(
width: 300,
),
),
const SizedBox(
height: 10,
),
const GSText(text: "Start your story"),
],
)