Skip to content

Commit f339749

Browse files
authored
fix: Update Digital Ink to V19 (#808)
1 parent 3654338 commit f339749

File tree

50 files changed

+184
-189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+184
-189
lines changed

.github/workflows/code-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
distribution: temurin
2525
- uses: subosito/flutter-action@v2.19.0
2626
with:
27-
flutter-version: '3.29.0'
27+
flutter-version: '3.35.3'
2828
cache: true
2929

3030
- name: Install dependencies for google_ml_kit

packages/example/android/app/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ plugins {
88
android {
99
namespace = "com.google.ml.kit.flutter.example"
1010
compileSdk = flutter.compileSdkVersion
11-
ndkVersion = "27.0.12077973"
1211

1312
compileOptions {
1413
sourceCompatibility = JavaVersion.VERSION_11
@@ -21,7 +20,7 @@ android {
2120

2221
defaultConfig {
2322
applicationId = "com.google.ml.kit.flutter.example"
24-
minSdk = 24
23+
minSdk = 26
2524
targetSdk = flutter.targetSdkVersion
2625
versionCode = flutter.versionCode
2726
versionName = flutter.versionName

packages/example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip

packages/example/android/settings.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pluginManagement {
1818

1919
plugins {
2020
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
21-
id("com.android.application") version "8.7.0" apply false
22-
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
21+
id("com.android.application") version "8.13.0" apply false
22+
id("org.jetbrains.kotlin.android") version "2.2.0" apply false
2323
}
2424

2525
include(":app")

packages/example/lib/activity_indicator/activity_indicator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Toast {
3737
class LoadingIndicator extends StatelessWidget {
3838
final String text;
3939

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

4242
@override
4343
Widget build(BuildContext context) {

packages/example/lib/vision_detector_views/camera_view.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ import 'package:google_mlkit_commons/google_mlkit_commons.dart';
77

88
class CameraView extends StatefulWidget {
99
CameraView(
10-
{Key? key,
10+
{super.key,
1111
required this.customPaint,
1212
required this.onImage,
1313
this.onCameraFeedReady,
1414
this.onDetectorViewModeChanged,
1515
this.onCameraLensDirectionChanged,
16-
this.initialCameraLensDirection = CameraLensDirection.back})
17-
: super(key: key);
16+
this.initialCameraLensDirection = CameraLensDirection.back});
1817

1918
final CustomPaint? customPaint;
2019
final Function(InputImage inputImage) onImage;

packages/example/lib/vision_detector_views/detector_view.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ enum DetectorViewMode { liveFeed, gallery }
99

1010
class DetectorView extends StatefulWidget {
1111
DetectorView({
12-
Key? key,
12+
super.key,
1313
required this.title,
1414
required this.onImage,
1515
this.customPaint,
@@ -19,7 +19,7 @@ class DetectorView extends StatefulWidget {
1919
this.onCameraFeedReady,
2020
this.onDetectorViewModeChanged,
2121
this.onCameraLensDirectionChanged,
22-
}) : super(key: key);
22+
});
2323

2424
final String title;
2525
final CustomPaint? customPaint;

packages/example/lib/vision_detector_views/gallery_view.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ import 'utils.dart';
1010

1111
class GalleryView extends StatefulWidget {
1212
GalleryView(
13-
{Key? key,
13+
{super.key,
1414
required this.title,
1515
this.text,
1616
required this.onImage,
17-
required this.onDetectorViewModeChanged})
18-
: super(key: key);
17+
required this.onDetectorViewModeChanged});
1918

2019
final String title;
2120
final String? text;

packages/example/lib/vision_detector_views/text_from_widget_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:flutter/rendering.dart';
77
import 'package:google_mlkit_text_recognition/google_mlkit_text_recognition.dart';
88

99
class TextFromWidgetView extends StatefulWidget {
10-
const TextFromWidgetView({Key? key}) : super(key: key);
10+
const TextFromWidgetView({super.key});
1111

1212
@override
1313
State<TextFromWidgetView> createState() => _TextFromWidgetViewState();

0 commit comments

Comments
 (0)