Code Monkey home page Code Monkey logo

compose_image_picker's Introduction

Quick overview

  • GitHub stats:

My github stats

compose_image_picker's People

Contributors

gohuhx avatar huhx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

compose_image_picker's Issues

在compose 1.4.3的版本报错

Process: com.gtrides.passenger, PID: 28742
java.lang.ClassCastException: androidx.compose.animation.AnimatedContentTransitionScopeImpl cannot be cast to androidx.compose.animation.AnimatedContentScope
at com.google.accompanist.navigation.animation.AnimatedNavHostKt$AnimatedNavHost$7$1.invoke(AnimatedNavHost.kt:198)
at androidx.compose.animation.AnimatedContentKt.AnimatedContent(AnimatedContent.kt:787)
at com.google.accompanist.navigation.animation.AnimatedNavHostKt.AnimatedNavHost(AnimatedNavHost.kt:196)
at com.google.accompanist.navigation.animation.AnimatedNavHostKt.AnimatedNavHost(AnimatedNavHost.kt:89)
at com.huhx.picker.data.AssetRouteKt.AssetPickerRoute(AssetRoute.kt:23)
at com.huhx.picker.view.AssetPickerKt$AssetPicker$2.invoke(AssetPicker.kt:38)
at com.huhx.picker.view.AssetPickerKt$AssetPicker$2.invoke(AssetPicker.kt:37)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:108)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)
at com.huhx.picker.view.AssetPickerKt.AssetPicker(AssetPicker.kt:37)

Is version 1.0.4 correct?

I tried to use the dependency, so I declared the implementation described in README.md, implementation "io.github.huhx:compose-image-picker:1.0.4". However, I was not able to use the classes. When I looked into the external libraries I noticed that there are no classes with that version (1.0.4):
Screen Shot 2022-12-05 at 16 48 48

I tried version 1.0.0 and was able to use the classes:
Screen Shot 2022-12-05 at 16 48 02

I'm not sure if this specific to my environment, or there is indeed something wrong with the dependency. I wanted to share it, just in case it is the second option

Optimize the AppBar in preview page

We hide the AppBar in preview page right now, but the effect looks not so good.
So change to replace AppBar with new icon and new title and hide the actions in Preview page.

image

image

Crash on app demo

Hi I was looking for a package that had extactly the functionalities that yours offers but it keeps crashing even when i launch the demo app allowing all the permissions.
Here the stack trace:
FATAL EXCEPTION: main Process: com.huhx.app, PID: 17944 java.lang.NullPointerException: getString(indexDirectory) must not be null at com.huhx.picker.data.AssetLoader.load(AssetLoader.kt:105) at com.huhx.picker.data.AssetPickerRepository.getAssets(AssetPickerRepository.kt:11) at com.huhx.picker.data.AssetViewModel.initAssets(AssetViewModel.kt:44) at com.huhx.picker.data.AssetViewModel.access$initAssets(AssetViewModel.kt:14) at com.huhx.picker.data.AssetViewModel$initDirectories$1.invokeSuspend(AssetViewModel.kt:30) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:367) at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:30) at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default(Cancellable.kt:25) at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:110) at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126) at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56) at kotlinx.coroutines.BuildersKt.launch(Unknown Source:1) at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47) at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:1) at com.huhx.picker.data.AssetViewModel.initDirectories(AssetViewModel.kt:29) at com.huhx.picker.view.AssetPickerKt$AssetPicker$1.invokeSuspend(AssetPicker.kt:34) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at androidx.compose.ui.platform.AndroidUiDispatcher.performTrampolineDispatch(AndroidUiDispatcher.android.kt:81) at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch(AndroidUiDispatcher.android.kt:41) at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.doFrame(AndroidUiDispatcher.android.kt:68) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1106) at android.view.Choreographer.doCallbacks(Choreographer.java:866) at android.view.Choreographer.doFrame(Choreographer.java:792) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1092) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@7c01437, Dispatchers.Main.immediate]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.