Floating primary action or expandable action group.
TxFloatingActionButton
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| items | List<TxAction> | const [] | Entries; replaced by dataSource when bound. |
| dataSource | Object? | null | List, configuration or DataSource instance; takes precedence over items. |
| onItemClick | ValueChanged<TxAction>? | null | Reports the activated entry; arguments follow the callback signature. |
| disabled | bool | false | Disables interaction. |
| icon | IconData | Icons.add | Action icon. |
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';
Widget example() {
return TxFloatingActionButton(items: const [TxAction(id: 'add', text: 'Add')], onItemClick: (action) {});
}