pickAssets method

void pickAssets(
  1. BuildContext context, {
  2. required int maxAssets,
})

Implementation

void pickAssets(BuildContext context, {required int maxAssets}) =>
    InstaAssetPicker.pickAssets(
      context,
      title: description.fullLabel,
      closeOnComplete: true,
      maxAssets: maxAssets,
      pickerTheme: getPickerTheme(context),
      onCompleted: (Stream<InstaAssetsExportDetails> cropStream) {
        Navigator.push(
          context,
          MaterialPageRoute(
            builder: (context) =>
                PickerCropResultScreen(cropStream: cropStream),
          ),
        );
      },
    );