utils/file_picker_service library
File Picker Service - Web-optimized file handling utilities
This service provides web-optimized file picking functionality with:
- Image selection with automatic dimension detection
- Base64 conversion for web compatibility
- File size and type validation
- Asynchronous file processing
This service is specifically optimized for web browsers and uses HTML file input APIs for better performance and compatibility.
import 'package:gs_template_maker/utils/file_picker_service.dart';
final result = await FilePickerService.pickImageWithDimensions();
if (result != null) {
print('Image: ${result.dataUrl}');
print('Size: ${result.width}x${result.height}');
}