flutter_web_file_selector
0.3.1, released 2 years ago by an unverified publisher
Select files on the web platform with an iOS UI workaround
What it does
A Flutter package designed to let users select files on the Web platform. It includes a specific workaround for the issue where file selection popup menus on iOS/iPadOS web browsers are placed far away from the tap location.
AI-written summary of version 0.3.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a workaround for the incorrect popup menu positioning on iOS/iPadOS web browsers
- You are building a Flutter web application that requires file selection
Skip it when
- You are targeting non-iOS web platforms primarily
- You need a comprehensive file picker solution across mobile and desktop platforms without web-specific workarounds
Strengths
- Fixes the iOS/iPadOS web browser file selection menu positioning issue
- Uses standard XFile classes from the cross_file package
Weaknesses
- Intended as a temporary solution until popular packages resolve the iOS web issue
- Recommended to use file_selector or file_picker for non-iOS web platforms
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
not documented
WebFileSelector(
onData: (files) async {
for (final XFile file in files) {
final Uint8List bytes = await file.readAsBytes();
}
},
accept: '.pdf, .png',
multiple: true,
child: ElevatedButton(onPressed: () {}, child: const Text('Select Files')),
)Alternatives
Packages that do the same job and could replace flutter_web_file_selector.
- file_selector_macos
macOS implementation of the file_selector plugin
82Compare - file_selector_windows
Windows implementation of the file_selector plugin
77Compare - file_selector_web
Web implementation of file_selector for selecting files in Flutter web.
76Compare - file_selector_linux
Linux implementation of the file_selector plugin for picking and saving files.
79Compare
Works with
Packages commonly used together with flutter_web_file_selector: ones it builds on, ones built on it, and its own family.