IconButton
Icon-based button without text label.
File: example/lib/widgets/button.dart
Factory Methods
FBIconButton.basic()- Simple icon buttonFBIconButton.filled()- Filled backgroundFBIconButton.outlined()- Outlined styleFBIconButton.tonal()- Tonal fill
Properties
icon: IconData
onPressed: VoidCallback
color: Color
backgroundColor: Color
size: double
tooltip: String
enabled: bool
Usage Example
FBIconButton.filled(
icon: Icons.delete,
onPressed: () => deleteItem(),
tooltip: 'Delete',
)
FBIconButton.outlined(
icon: Icons.edit,
onPressed: () => editItem(),
tooltip: 'Edit',
)
Icon Row
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
FBIconButton.filled(
icon: Icons.edit,
onPressed: () {},
),
FBIconButton.filled(
icon: Icons.delete,
onPressed: () {},
),
FBIconButton.filled(
icon: Icons.share,
onPressed: () {},
),
],
)