Skip to content

Commit

Permalink
Update examples to fix a problem related to a breaking Flutter plugin…
Browse files Browse the repository at this point in the history
…s (see: flutter/flutter#27226) and a breaking change to ImageStream listener API.
  • Loading branch information
ChristianEdwardPadilla committed Mar 23, 2020
1 parent d07013f commit f479ce1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 27
compileSdkVersion 28

lintOptions {
disable 'InvalidPackage'
Expand Down
1 change: 1 addition & 0 deletions example/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
10 changes: 10 additions & 0 deletions example/ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=C:\Users\chris\flutter"
export "FLUTTER_APPLICATION_PATH=C:\Users\chris\Documents\matrix_gesture_detector\example"
export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
export "FLUTTER_FRAMEWORK_DIR=C:\Users\chris\flutter\bin\cache\artifacts\engine\ios"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
4 changes: 2 additions & 2 deletions example/lib/blur_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class ImageData {
ImageStream oldImageStream = imageStream;
imageStream = imageProvider.resolve(createLocalImageConfiguration(context));
if (imageStream.key != oldImageStream?.key) {
oldImageStream?.removeListener(imageLoaded);
imageStream.addListener(imageLoaded);
oldImageStream?.removeListener(ImageStreamListener(imageLoaded));
imageStream.addListener(ImageStreamListener(imageLoaded));
}
}

Expand Down

0 comments on commit f479ce1

Please sign in to comment.