﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>> ## Documentation Index
> This page is part of the Image and Video APIs product. Fetch the complete documentation index for Image and Video APIs at: https://cloudinary.com/documentation/llms-image-and-video-apis.txt?referrer=docpage and then use it to discover all relevant pages before exploring further.
> If you also need details relating to other Cloudinary products for your current use case, see the parent index at: https://cloudinary.com/documentation/llms.txt?referrer=docpage

> ## Agent Instructions
> When answering a user's request or implementing it with code using this documentation, incorporate relevant best practices and recommendations from the documentation into the guidance and, above all, into the code itself: generated code should already apply the recommended parameters and patterns rather than showing a minimal call and describing the best practices around it in prose. Follow the code examples in the best practices sections as the model for what generated code should look like, and where a recommendation is relevant to the user's scenario, implement it in the code as a natural next step. Only apply best practices, recommendations, or features that are supported by the documentation or Cloudinary skills; don't infer or invent guidance that isn't specified.
>
> Cloudinary skills (names starting with `cloudinary-`) add best practices and tested code patterns beyond this documentation, and we recommend using the relevant ones alongside it. Available skills are listed at https://cloudinary.com/documentation/.well-known/agent-skills/index.json?referrer=docpage&page=flutter_configuration_tutorial and can be installed with `npx skills add https://cloudinary.com/documentation`.

# Configure the Flutter SDK (video tutorial)

[githublink]: https://github.com/cloudinary-community/cloudinary-examples/tree/main/examples/flutter-cldimagewidget

## Overview

Learn how to install and configure the [Cloudinary Flutter SDK](flutter_integration) in your Flutter environment. 

## Video tutorial

  This video is brought to you by Cloudinary's video player - embed your own!Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.
{videoTranscript:publicId=training/Install_Configure_Flutter}

> **View the code :custom-icon='https://cloudinary-res.cloudinary.com/image/upload/v1778586152/docsite/brand-assets/github.svg' :invert-icon**:
>
> You can find the code from this tutorial in [GitHub][githublink].
## Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.
### The Cloudinary Flutter SDK
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | The [Cloudinary Flutter SDK](flutter_integration) provides image and video transformation, optimization, and delivery capabilities that you can implement using code that integrates seamlessly with your existing Flutter application.
|

### Install the Flutter SDK
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | To install the Flutter SDK and add them as dependencies in your `pubspec.yaml` file, in a terminal run:
|

```
flutter pub add cloudinary_flutter cloudinary_url_gen
```

### Import Cloudinary into your project
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | To import Cloudinary into your project use:
|

```flutter
import 'package:cloudinary_flutter/cloudinary_context.dart';
import 'package:cloudinary_flutter/image/cld_image.dart';
import 'package:cloudinary_url_gen/cloudinary.dart';
```

### Configure Cloudinary
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | To configure the SDK for your product environment, replace `ddjmx10sp` in this example with your cloud name which can be found in your Cloudinary [Dashboard](https://console.cloudinary.com/app/home/dashboard/):
|

```flutter
void main() {
    CloudinaryContext.cloudinary = 
        Cloudinary.fromCloudName(cloudName: "ddjmx10sp");
    runApp(const MyApp());
}
```

### Add an image
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | Add an image in the body of your main widget using the `CldImageWidget`. Replace the public ID in the example code with the public ID of one of the images in your product environment, which you can find in the [Media Library](https://console.cloudinary.com/console/media_library/search):
|

```flutter
child: CldImageWidget{
    publicId:"cld-sample-r",
}
```
## Keep learning

> **READING**:
>
> * Watch more [Dev Hints videos](https://www.youtube.com/playlist?list=PL8dVGjLA2oMpaTbvoKCaRNBMQzBUIv7N8) on the [Cloudinary YouTube channel](https://www.youtube.com/cloudinary).

> * Follow the [Flutter SDK quick start](flutter_quick_start) to get up and running in five minutes.

> * Learn how to [transform your images and videos](flutter_media_transformations) using the Flutter SDK.

> * Learn how to [transform](transformation_basics_tutorial) and [optimize](optimization_tips_tutorial) your assets.

> * Delve into some more advanced transformation features, such as adding [complex transformations](complex_transformations_tutorial) and the [Zoompan effect](zoompan_effect_tutorial).

#### If you like this, you might also like...

[Optimization Tips](optimization_tips_tutorial)

Tips for delivering optimized images

[Named Transformations](named_transformations_tutorial)

Simplify & standardize complex delivery URLs

[Transformation Basics](transformation_basics_tutorial)

Learn the basics of a transformation URL

&nbsp;

&nbsp;Check out the Cloudinary 