diff --git a/covas_mobile/lib/pages/Camera.dart b/covas_mobile/lib/pages/Camera.dart index d8baa08..9ce3c6b 100644 --- a/covas_mobile/lib/pages/Camera.dart +++ b/covas_mobile/lib/pages/Camera.dart @@ -3,6 +3,7 @@ import 'dart:io'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_gemini/flutter_gemini.dart'; Future main() async { // Ensure that plugin services are initialized so that `availableCameras()` @@ -12,6 +13,8 @@ Future main() async { // Obtain a list of the available cameras on the device. final cameras = await availableCameras(); + Gemini.init(apiKey: 'AIzaSyAt1LQIV_hwJQF56sXjb4oxEZEC0wI3PKg'); + // Get a specific camera from the list of available cameras. final firstCamera = cameras.first; diff --git a/covas_mobile/pubspec.lock b/covas_mobile/pubspec.lock index 8193353..b419436 100644 --- a/covas_mobile/pubspec.lock +++ b/covas_mobile/pubspec.lock @@ -97,6 +97,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.8" + dio: + dependency: transitive + description: + name: dio + sha256: e17f6b3097b8c51b72c74c9f071a605c47bcc8893839bd66732457a5ebe73714 + url: "https://pub.dev" + source: hosted + version: "5.5.0+1" + dio_web_adapter: + dependency: transitive + description: + name: dio_web_adapter + sha256: "36c5b2d79eb17cdae41e974b7a8284fec631651d2a6f39a8a2ff22327e90aeac" + url: "https://pub.dev" + source: hosted + version: "1.0.1" fake_async: dependency: transitive description: @@ -126,6 +142,14 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_gemini: + dependency: "direct main" + description: + name: flutter_gemini + sha256: c6079dc6f95c6191e609e9cc627c268ef0bf2526cbba6a2f61aa41ea0053e9a0 + url: "https://pub.dev" + source: hosted + version: "2.0.4" flutter_lints: dependency: "direct dev" description: @@ -152,6 +176,14 @@ packages: description: flutter source: sdk version: "0.0.0" + freezed_annotation: + dependency: transitive + description: + name: freezed_annotation + sha256: f54946fdb1fa7b01f780841937b1a80783a20b393485f3f6cdf336fd6f4705f2 + url: "https://pub.dev" + source: hosted + version: "2.4.2" http: dependency: "direct main" description: @@ -176,6 +208,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.19.0" + json_annotation: + dependency: transitive + description: + name: json_annotation + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" + url: "https://pub.dev" + source: hosted + version: "4.9.0" leak_tracker: dependency: transitive description: @@ -232,6 +272,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.12.0" + mime: + dependency: transitive + description: + name: mime + sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" + url: "https://pub.dev" + source: hosted + version: "1.0.5" path: dependency: "direct main" description: diff --git a/covas_mobile/pubspec.yaml b/covas_mobile/pubspec.yaml index 38dc88f..7551e9a 100644 --- a/covas_mobile/pubspec.yaml +++ b/covas_mobile/pubspec.yaml @@ -41,6 +41,7 @@ dependencies: camera_web: ^0.3.3 path_provider: ^2.1.3 path: ^1.9.0 + flutter_gemini: ^2.0.4 dev_dependencies: flutter_test: