# Flutter

## Installation

Add Cotter to your `pubspec.yaml` , then run `flutter pub get`.

```yaml
dependencies:
  cotter:
```

Check the latest releases in [pub.dev](https://pub.dev/packages/cotter#-installing-tab-). You may need to restart your flutter for it to run pod install (stop flutter run and re run it).

#### For Android:

Update the `minSdkVersion` inside `android/app/build.gradle` to 18:

```yaml
defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.example.example"
    minSdkVersion 18   // 👈 Update this line
    targetSdkVersion 28
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}
```

## **Complete Guides**

#### **Sign in with Device**

Allow users to login automatically from a device that they trust.

{% content-ref url="flutter/sign-in-with-device" %}
[sign-in-with-device](https://docs.cotter.app/sdk-reference/flutter/sign-in-with-device)
{% endcontent-ref %}

#### Sign in with Email/Phone Number

Authenticate users by sending a Magic Link or OTP via email, SMS, or WhatsApp.

{% content-ref url="flutter/sign-in-with-email-phone-number" %}
[sign-in-with-email-phone-number](https://docs.cotter.app/sdk-reference/flutter/sign-in-with-email-phone-number)
{% endcontent-ref %}

## Quickstart Guides

{% content-ref url="../quickstart-guides/flutter-sign-in-with-device" %}
[flutter-sign-in-with-device](https://docs.cotter.app/quickstart-guides/flutter-sign-in-with-device)
{% endcontent-ref %}
