Directory navigation and file actions. Provider capabilities determine available operations; no file server is included.
TxFileManager
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| provider | TxFileProvider | required | File provider with supported operations. |
| dataSource | Object? | null | List, configuration or DataSource instance; takes precedence over items. |
| disabled | bool | false | Disables interaction. |
| height | double | 360 | Height; Vue numbers use pixels, Flutter uses logical pixels. |
| onSelectionChanged | ValueChanged<List<TxFileEntry>>? | null | Reports selection; update controlled state in the callback. |
| onFileOpened | ValueChanged<TxFileEntry>? | null | Reports the activated file entry. |
| onDownload | void Function(TxFileEntry, Uint8List)? | null | Provides a file entry and bytes for custom saving. |
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';
Widget example() {
final provider = TxMemoryFileProvider([const TxFileEntry(id: '1', name: 'Documents', isDirectory: true)]);
return TxFileManager(provider: provider);
}