antd_upload 1.0.2
antd_upload: ^1.0.2 copied to clipboard
Ant Design v6 Upload component for Flutter. File selection upload with file list display, upload progress, preview and remove, aligned with antd React Upload API.
Changelog #
1.0.2 #
- Republished with a Web-compatible dependency chain.
- Republished to refresh pub.dev platform scoring.
1.0.1 #
- Fix pub.dev static analysis results by aligning internal dependency constraints.
- Ship the package example and tighten pubspec metadata for better pub.dev scoring.
- Documentation and changelog polish.
1.0.0 #
Initial stable release of the standalone antd_upload package.
Features #
AntUpload<T>renders an upload trigger and a generic file list with text, picture, and picture-card presentations.- Files are supplied by
onSelectFiles; the component performs no file picking and no network I/O. customRequestreceives each file together with anupdateFilecallback for publishing progress, completion, and errors.- Controlled
fileListand uncontrolleddefaultFileListmodes are supported, withonChangereporting the changed file and the current list. AntUploadFile<T>carriesuid,name, status, size, URLs, percentage, response, and a typedextrapayload;copyWithpreserves the payload.- Removal is gated by
onRemove, which can cancel the operation by returning false; a file markedremovedleaves the visible list and is ignored by themaxCountcalculation. maxCount,multiple,disabled, andshowUploadListcontrol selection capacity and interaction.onPreviewexposes row activation, anditemBuildercan replace the default row rendering with business-specific content.- Uploading, done, error, and removed states drive the progress overlay, error icon, and list membership.
- Added the
AntUploadStatusandAntUploadListTypeenums and theAntUploadItemBuildertypedef.