t×tecexpressby TeKOcloud
DEv0.7.1
Files & maps / FLUTTER

TxFileManager.

Interactive preview

Directory navigation and file actions. Provider capabilities determine available operations; no file server is included.

TxFileManager

ParameterTypeDefaultMeaning
providerTxFileProviderrequiredFile provider with supported operations.
dataSourceObject?nullList, configuration or DataSource instance; takes precedence over items.
disabledboolfalseDisables interaction.
heightdouble360Height; Vue numbers use pixels, Flutter uses logical pixels.
onSelectionChangedValueChanged<List<TxFileEntry>>?nullReports selection; update controlled state in the callback.
onFileOpenedValueChanged<TxFileEntry>?nullReports the activated file entry.
onDownloadvoid Function(TxFileEntry, Uint8List)?nullProvides a file entry and bytes for custom saving.
dart
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);
}