AppFlowy/frontend/appflowy_flutter/lib/util/default_extensions.dart
Mathias Mogensen ee3054b355
fix: more default image extensions (#6250)
* fix: more default image extensions

* fix: add and comment default image extensions
2024-09-10 16:32:36 +08:00

16 lines
425 B
Dart

/// List of default file extensions used for images.
///
/// This is used to make sure that only images that are allowed are picked/uploaded. The extensions
/// should be supported by Flutter, to avoid causing issues.
///
/// See [Image-class documentation](https://api.flutter.dev/flutter/widgets/Image-class.html)
///
const List<String> defaultImageExtensions = [
'jpg',
'png',
'jpeg',
'gif',
'webp',
'bmp',
];