Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
distribution: temurin
- uses: subosito/[email protected]
with:
flutter-version: '3.29.0'
flutter-version: '3.35.3'
cache: true

- name: Install dependencies for google_ml_kit
Expand Down
3 changes: 1 addition & 2 deletions packages/example/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ plugins {
android {
namespace = "com.google.ml.kit.flutter.example"
compileSdk = flutter.compileSdkVersion
ndkVersion = "27.0.12077973"

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
Expand All @@ -21,7 +20,7 @@ android {

defaultConfig {
applicationId = "com.google.ml.kit.flutter.example"
minSdk = 24
minSdk = 26
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip
4 changes: 2 additions & 2 deletions packages/example/android/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pluginManagement {

plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.7.0" apply false
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
id("com.android.application") version "8.13.0" apply false
id("org.jetbrains.kotlin.android") version "2.2.0" apply false
}

include(":app")
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Toast {
class LoadingIndicator extends StatelessWidget {
final String text;

const LoadingIndicator({Key? key, required this.text}) : super(key: key);
const LoadingIndicator({super.key, required this.text});

@override
Widget build(BuildContext context) {
Expand Down
5 changes: 2 additions & 3 deletions packages/example/lib/vision_detector_views/camera_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ import 'package:google_mlkit_commons/google_mlkit_commons.dart';

class CameraView extends StatefulWidget {
CameraView(
{Key? key,
{super.key,
required this.customPaint,
required this.onImage,
this.onCameraFeedReady,
this.onDetectorViewModeChanged,
this.onCameraLensDirectionChanged,
this.initialCameraLensDirection = CameraLensDirection.back})
: super(key: key);
this.initialCameraLensDirection = CameraLensDirection.back});

final CustomPaint? customPaint;
final Function(InputImage inputImage) onImage;
Expand Down
4 changes: 2 additions & 2 deletions packages/example/lib/vision_detector_views/detector_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ enum DetectorViewMode { liveFeed, gallery }

class DetectorView extends StatefulWidget {
DetectorView({
Key? key,
super.key,
required this.title,
required this.onImage,
this.customPaint,
Expand All @@ -19,7 +19,7 @@ class DetectorView extends StatefulWidget {
this.onCameraFeedReady,
this.onDetectorViewModeChanged,
this.onCameraLensDirectionChanged,
}) : super(key: key);
});

final String title;
final CustomPaint? customPaint;
Expand Down
5 changes: 2 additions & 3 deletions packages/example/lib/vision_detector_views/gallery_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ import 'utils.dart';

class GalleryView extends StatefulWidget {
GalleryView(
{Key? key,
{super.key,
required this.title,
this.text,
required this.onImage,
required this.onDetectorViewModeChanged})
: super(key: key);
required this.onDetectorViewModeChanged});

final String title;
final String? text;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:flutter/rendering.dart';
import 'package:google_mlkit_text_recognition/google_mlkit_text_recognition.dart';

class TextFromWidgetView extends StatefulWidget {
const TextFromWidgetView({Key? key}) : super(key: key);
const TextFromWidgetView({super.key});

@override
State<TextFromWidgetView> createState() => _TextFromWidgetViewState();
Expand Down
Loading