Image & Video APIs

Flutter quick start

Last updated: Apr-23-2025

This quick start lets you get an end-to-end implementation up and running using the Flutter SDK in 5 minutes or less.

Notes
  • This quick start is designed for quick onboarding. It doesn't necessarily employ coding best practices and the code you create here isn't intended for production.
  • If you aren't familiar with Cloudinary, you may want to first take a look at the Developer Kickstart for a hands-on, step-by-step introduction to Cloudinary features.

    You may also find our Glossary helpful to understand Cloudinary-specific terminology.

1. Set up and configure the SDK

Install the package

Install the @cloudinary_flutter package by adding Cloudinary as a dependency in your pubspec.yaml file.

Configure Cloudinary

Create a basic Flutter app, and in main.dart copy and paste the following:

main.dart

2. Upload an image

You need to use an image in your Cloudinary product environment for the next steps. All new accounts come with sample images, so we'll be using the sample image with public ID cld-sample for the purposes of this quick start.

If you want to try uploading an image via the Cloudinary Console, expand the following section for instructions:

Note