'show ImageViewer with emulator in flutter
I want to show ImageViewer in Android emulator,
But I press button some errors are ocurred.
I want help
E/MethodChannel#image_viewer( 3363): java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
E/MethodChannel#image_viewer( 3363): at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:843)
E/MethodChannel#image_viewer( 3363): at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:806)
E/MethodChannel#image_viewer( 3363): at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:693)
E/MethodChannel#image_viewer( 3363): at androidx.appcompat.app.AppCompatDialog.setContentView(AppCompatDialog.java:95)
E/MethodChannel#image_viewer( 3363): at androidx.appcompat.app.AlertController.installContent(AlertController.java:232)
E/MethodChannel#image_viewer( 3363): at androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:279)
E/MethodChannel#image_viewer( 3363): at android.app.Dialog.dispatchOnCreate(Dialog.java:419)
E/MethodChannel#image_viewer( 3363): at android.app.Dialog.show(Dialog.java:313)
E/MethodChannel#image_viewer( 3363): at com.stfalcon.frescoimageviewer.ImageViewer.show(ImageViewer.java:61)
E/MethodChannel#image_viewer( 3363): at com.stfalcon.frescoimageviewer.ImageViewer$Builder.show(ImageViewer.java:435)
E/MethodChannel#image_viewer( 3363): at com.tahamalas.image_viewer.ImageViewerPlugin.showImageViewer(ImageViewerPlugin.kt:57)
E/MethodChannel#image_viewer( 3363): at com.tahamalas.image_viewer.ImageViewerPlugin.onMethodCall(ImageViewerPlugin.kt:47)
E/MethodChannel#image_viewer( 3363): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/MethodChannel#image_viewer( 3363): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:296)
E/MethodChannel#image_viewer( 3363): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:320)
E/MethodChannel#image_viewer( 3363): at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12)
E/MethodChannel#image_viewer( 3363): at android.os.Handler.handleCallback(Handler.java:938)
E/MethodChannel#image_viewer( 3363): at android.os.Handler.dispatchMessage(Handler.java:99)
E/MethodChannel#image_viewer( 3363): at android.os.Looper.loop(Looper.java:223)
E/MethodChannel#image_viewer( 3363): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/MethodChannel#image_viewer( 3363): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#image_viewer( 3363): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/MethodChannel#image_viewer( 3363): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
I/flutter ( 3363): You need to use a Theme.AppCompat theme (or descendant) with this activity.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
