NsgFilePickerProvider class
Constructors
-
NsgFilePickerProvider.new({List<
String> allowedImageFormats = const ['jpeg', 'jpg', 'gif', 'png', 'bmp'], List<String> allowedVideoFormats = const ['mp4', 'mov'], List<String> allowedFileFormats = const ['doc', 'docx', 'rtf', 'xls', 'xlsx', 'pdf', 'rtf'], double imageMaxWidth = 1200.0, double imageMaxHeight = 1200.0, int imageQuality = 70, double fileMaxSize = 10000000.0, bool ignoreMaxSize = false, String savePrefix = 'NsgFile', int maxFilesCount = 0, NsgFilePickerObjectType mobileSelectionType = NsgFilePickerObjectType.image}) -
const
Properties
-
allowedFileFormats
→ List<
String> -
final
-
allowedImageFormats
→ List<
String> -
final
-
allowedVideoFormats
→ List<
String> -
final
- fileMaxSize → double
-
Максимально разрешенный размер файла для выбора. При превышении размера файла, его выбор будет запрещен
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreMaxSize → bool
-
final
- imageMaxHeight → double
-
Максимальная высота картинки. При превышении, картинка будет пережата
final
- imageMaxWidth → double
-
Максимальная ширина картинки. При превышении, картинка будет пережата.
final
- imageQuality → int
-
Качество сжатия картинки в jpeg (100 - макс)
final
- maxFilesCount → int
-
final
- mobileSelectionType → NsgFilePickerObjectType
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- savePrefix → String
-
final
Methods
-
autoSelectPicker(
{bool oneFile = false, ESourceType eSourceType = ESourceType.auto, BuildContext? mainContext}) → Future< List< NsgFilePickerObject> > -
cameraImage(
{bool oneFile = false}) → Future< List< NsgFilePickerObject> > - Capture a photo
-
galleryImage(
{bool oneFile = false}) → Future< List< NsgFilePickerObject> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pickFile(
{bool oneFile = false}) → Future< List< NsgFilePickerObject> > - Pick an image
-
saveFile(
NsgFilePickerObject fileObject, {String? customFileName, String? customPrefix}) → Future -
showSourceTypeDialog(
BuildContext context) → Future< ESourceType?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
globalAllowedFileFormats
↔ List<
String> -
getter/setter pair
-
globalAllowedImageFormats
↔ List<
String> -
getter/setter pair
-
globalAllowedVideoFormats
↔ List<
String> -
getter/setter pair