Button
Buttons initiate actions.
Primary
Section titled “Primary”Button( label: const Text('Primary'), onPressed: () {}, variant: ButtonVariant.primary,)Secondary
Section titled “Secondary”Button( label: const Text('Secondary'), onPressed: () {}, variant: ButtonVariant.secondary,)Button( label: const Text('Ghost'), onPressed: () {}, variant: ButtonVariant.ghost,)Destructive
Section titled “Destructive”Button( label: const Text('Destructive'), onPressed: () {}, variant: ButtonVariant.danger,)Outline Destructive
Section titled “Outline Destructive”Button( label: const Text('Outline Destructive'), onPressed: () {}, variant: ButtonVariant.outlineDanger,)Disabled
Section titled “Disabled”Button( child: const Text('Disabled'), onPressed: null, disabled: true,)Success
Section titled “Success”Button( label: const Text('Success'), onPressed: () {}, variant: ButtonVariant.success,)Full Width
Section titled “Full Width”Button( label: const Text('Full Width'), onPressed: () {}, variant: ButtonVariant.primary, fullWidth: true,)With Icon
Section titled “With Icon”Button( label: const Text('With Icon'), icon: const Icon(PrimeIcons.plus), onPressed: () {}, variant: ButtonVariant.primary,)Loading
Section titled “Loading”Button( label: const Text('Loading...'), icon: const Progress(), onPressed: null,)