I have included flutter module inside my android project and flutter module contains webview (flutter_inappwebview) which I am using to load app url's.
I am opening a webview page which has text fields to enter the data. when I click on text field to enter the data the keyboard is poping up and the screen becomes completely black.
Logs are filling with below error
E/InputMethodManager: b/117267690: Failed to get fallback IMM with expected displayId=134 actual IMM#displayId=0 view=com.pichillilorenzo.flutter_inappwebview.InAppWebView.InAppWebView{1df7162 VFEDHVCL. .F...... 0,0-1440,2308}
flutter logs
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.6 19G2021, locale en-IN)
• Flutter version 1.20.4 at /Users/prabhukuppala/Documents/FlutterDevelopment/flutter
• Framework revision fba99f6cf9 (2 weeks ago), 2020-09-14 15:32:52 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/prabhukuppala/Library/Android/sdk
• Platform android-30, build-tools 29.0.3
• ANDROID_HOME = /Users/prabhukuppala/Library/Android/sdk/platform-tools:/Users/prabhukuppala/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.9.1
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 50.0.1
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] IntelliJ IDEA Community Edition (version 2020.1.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 46.0.3
• Dart plugin version 201.7846.93
[✓] VS Code (version 1.47.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.12.2
[✓] Connected device (2 available)
• Android SDK built for x86 64 (mobile) • emulator-5554 • android-x64 • Android 8.0.0 (API 26) (emulator)
• Android SDK built for x86 64 (mobile) • emulator-5556 • android-x64 • Android 10 (API 29) (emulator)
• No issues found!
Insert this in scaffold:
resizeToAvoidBottomInset: false
Related
Screenshot: App shows up on Android, but not on IOS
When I run my application with flutter run -d all, the app works fine on Android but on IOS I am getting a black screen. The same behavior happens on real devices.
I already tried to use flutter build ios --release, and change the build configuration on XCode to release, but nothing works.
│ ~/carpediem/carpediem │ on main *4 !1 flutter -v doctor ✔ │ at 07:15:05 AM
[✓] Flutter (Channel beta, 3.1.0-9.0.pre, on macOS 12.4 21F79 darwin-x64, locale en-DE)
• Flutter version 3.1.0-9.0.pre at /usr/local/Caskroom/flutter/1.22.6/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f28e570c8c (4 weeks ago), 2022-06-14 13:39:33 -0500
• Engine revision 74ee6b5afd
• Dart version 2.18.0 (build 2.18.0-165.1.beta)
• DevTools version 2.14.0
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2)
• Android SDK at /Users/gabriel/Library/Android/sdk
• Platform android-33, build-tools 33.0.0-rc2
• ANDROID_HOME = /Users/gabriel/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.3
[✓] Android Studio (version 2021.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] IntelliJ IDEA Community Edition (version 2021.2.3)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin version 212.5632
[✓] VS Code (version 1.68.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.44.0
[✓] Connected device (2 available)
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 12 (API 31) (emulator)
• iPhone 11 Pro Max (mobile) • 8BEFDB1F-BB68-4E25-BBAB-B97FF978C1BE • ios •
com.apple.CoreSimulator.SimRuntime.iOS-15-4 (simulator)
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
I've been trying to run some basic flutter code on a physical device (was working a few days ago) I am kinda new to flutter and I am left with this error message.
Invalid depfile: /mnt/2d3f0752-b6d9-49f5-94cc-f85e942a8495/home/abdullah/UIA/212/MAD/mad_assignment/.dart_tool/flutter_build/10a98dcd0759222e9209b6893a2ed34e/kernel_snapshot.d
: Error: Not found: 'dart:html'
lib/home.dart:1
import 'dart:html';
[flutter] flutter doctor -v
[✓] Flutter (Channel stable, 2.10.3, on Ubuntu 20.04.4 LTS 5.13.0-44-generic, locale en_US.UTF-8)
• Flutter version 2.10.3 at /home/fawrama/snap/flutter/common/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7e9793dee1 (3 months ago), 2022-03-02 11:23:12 -0600
• Engine revision bd539267b4
• Dart version 2.16.1
• DevTools version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
• Android SDK at /home/fawrama/Android/Sdk
• Platform android-Tiramisu, build-tools 33.0.0-rc4
• Java binary at: /snap/android-studio/121/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /snap/android-studio/119/android-studio
• Flutter plugin version 65.2.2
• Dart plugin version 211.7808
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
[✓] Android Studio (version 2021.2)
• Android Studio at /snap/android-studio/121/android-studio
• Flutter plugin version 67.1.2
• Dart plugin version 212.5744
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] IntelliJ IDEA Community Edition (version 2022.1)
• IntelliJ at /snap/intellij-idea-community/361
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
[✓] VS Code
• VS Code at /snap/code/current
• Flutter extension version 3.40.0
[✓] Connected device (2 available)
• SM A325F (mobile) • RR8RC0EA1SA • android-arm64 • Android 11 (API 30)
• Chrome (web) • chrome • web-javascript • Google Chrome 102.0.5005.61
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
exit code 0
Remove dart:html from main.dart. or replace it with dart:io
I have project flutter, and I want to add the live-streaming feature to this project. I want to use video_player packages (https://pub.dev/packages/video_player/versions/2.0.0-nullsafety.3) but after I have added the packages I get an error in my project.
Flutter Doctor
hesa#hesa-dev:~/Documents/FlutterAPP/SiakTV_RPK-hs1$ flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_US.UTF-8)
• Flutter version 2.2.3 at /home/hesa/snap/flutter/common/flutter
• Framework revision f4abaa0735 (12 days ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/hesa/Android/Sdk/
• Platform android-S, build-tools 30.0.3
• Java binary at: /home/hesa/Downloads/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Android Studio (version 4.2)
• Android Studio at /home/hesa/Downloads/android-studio
• Flutter plugin version 58.0.1
• Dart plugin version 202.8531
• Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
[✓] VS Code (version 1.57.0)
• VS Code at /usr/share/code
• Flutter extension version 3.24.0
[✓] Connected device (2 available)
• SM A315G (mobile) • RR8N604V1BL • android-arm64 • Android 11 (API 30)
• Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.106
• No issues found!
Image Console project
So I was testing my application on this, and noticed it was unbearably sluggish.
I tried installing a version specific to armeabi-v7 by using split, but to no luck. After which I though maybe it was something wrong with my code so create a fresh new project and tried installing it. This also resulted in the same performance issue.
I tried looking for an issue regarding this in flutter's repo, but couldn't find any thing relevant. So am I missing something?
[✓] Flutter (Channel stable, 1.22.2, on macOS 11.1 20C69, locale en-US)
• Flutter version 1.22.2 at /Users/riteshakya037/Projects/flutter
• Framework revision 84f3d28555 (3 months ago), 2020-10-15 16:26:19 -0700
• Engine revision b8752bbfff
• Dart version 2.10.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/riteshakya037/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/riteshakya037/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.0
[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.52.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.18.1
[✓] Connected device (2 available)
• AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
• sdk phone armv7 (mobile) • emulator-5556 • android-arm • Android 6.0 (API 23) (emulator)
Specs for the device can be found this
Does anyone know about this issue? I run flutter run -v on MacOS for an physical Android device, get exception says throwToolExit (package:flutter_tools/src/base/common.dart:14:3) and blah blah blah.
Attached log of flutter run -v
My flutter is on stable channel and healthy, any help would be very appreciate!
[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.14.6 18G103, locale en-CN)
• Flutter version 1.17.0 at /Volumes/Transcend/Development/flutter
• Framework revision e6b34c2b5c (7 days ago), 2020-05-02 11:39:18 -0700
• Engine revision 540786dd51
• Dart version 2.8.1
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Volumes/Transcend/Development/AndroidSDK
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.9.0
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.45.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.10.1
[✓] Connected device (2 available)
• SM G9500 • 988a1b474239545746 • android-arm64 • Android 9 (API 28)
• Capt. Michael’s iPhone • 14717dae7626a115db93783c0f4a386e6c51783e • ios • iOS 12.4.5
• No issues found!
Solved after removed flutter_facebook_login: ^3.0.0 from pubsepc.yaml.