Bottom action sheet with a cancel action.
TxActionSheet
| 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. |
| title | String? | null | View title. |
| onItemClick | ValueChanged<TxAction>? | null | Reports the activated entry; arguments follow the callback signature. |
| cancelText | String | 'Abbrechen' | Cancel action label. |
| Member / type / return | Meaning |
|---|---|
static Future<TxAction?> show(BuildContext context, {List<TxAction> items = const [], Object? dataSource, String? title}) | Opens the native overlay alternative; follow the return contract in the signature. |
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';
Widget example() {
return TxActionSheet(title: 'Actions', items: const [TxAction(id: 'copy', text: 'Copy')], onItemClick: (action) {});
}import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';
Future<void> open(BuildContext context) async {
final selected = await TxActionSheet.show(context, items: const [TxAction(id: 'copy', text: 'Copy')]);
debugPrint('${selected?.id}');
}