Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove native portion #7

Open
ened opened this issue Apr 6, 2019 · 7 comments
Open

Remove native portion #7

ened opened this issue Apr 6, 2019 · 7 comments

Comments

@ened
Copy link

ened commented Apr 6, 2019

Is it possible to remove the native code portion altogether and use Flutters SystemChrome methods?

Besides, the Kotlin version is out of date again:

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher.
The following dependencies do not satisfy the required version:
project ':pinch_zoom_image' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71

Highly suggest to move this back to Java..

@leodr
Copy link

leodr commented Jul 10, 2019

Yes it is possible. Just clone the code into your own project and replace the channel.invokeMethod("hideStatusBar"); callback with SystemChrome.setEnabledSystemUIOverlays([]); and channel.invokeMethod("showStatusBar"); with SystemChrome.setEnabledSystemUIOverlays( [SystemUiOverlay.bottom, SystemUiOverlay.top]);

@MuhammamdArslanKhan
Copy link

Kindly help me, have anybody tried above solution? is it working?
mine is same issue.
`FAILURE: Build failed with an exception.

  • What went wrong:
    The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher.
    The following dependencies do not satisfy the required version:
    project ':pinch_zoom_image' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s
Command: D:\PATH\android\gradlew.bat app:properties

Please review your Gradle project setup in the android/ folder.`

@leodr
Copy link

leodr commented Sep 12, 2019

Well, yes I did try the above solution. It works fine, doesn't act as smooth tho. You will always have these build errors, unless the creator updates the package, which I think will unfortunately not happen.

@huobazi
Copy link

huobazi commented Oct 15, 2019

i also got this issues

Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher.
The following dependencies do not satisfy the required version:
project ':pinch_zoom_image' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 4s
Finished with error: Gradle task assembleDebug failed with exit code 1

@huobazi
Copy link

huobazi commented Oct 16, 2019

#11 works fine for me

@furkankurt
Copy link

I created new repo. Owner of this project don't accept pull requests. You can use mine.
https://pub.dartlang.org/packages/pinch_zoom_image_last
If there is an issue, you can open an issue of my github repo.

@shinriyo
Copy link

this?

 [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method showStatusBar on channel pinch_zoom_image)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants