Comments (16)
@laterdayi
Can you provide flutter doctor -v
and complete runnable reproducible code sample (ex: main.dart) that we can simply copy paste and run ?
Also, what device + OS version are you seeing this behavior on ?
from flutter.
[!] Flutter (Channel stable, 3.19.6, on Microsoft Windows [ 10.0.19045.4291], locale zh-CN)
• Flutter version 3.19.6 on channel stable at E:\flutter\default
! Warning: `flutter` on your path resolves to E:\flutter\versions\stable\bin\flutter, which is not inside your
current Flutter SDK checkout at E:\flutter\default. Consider adding E:\flutter\default\bin to the front of your
path.
! Warning: `dart` on your path resolves to E:\flutter\versions\stable\bin\dart, which is not inside your current
Flutter SDK checkout at E:\flutter\default. Consider adding E:\flutter\default\bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 54e66469a9 (32 hours ago), 2024-04-17 13:08:03 -0700
• Engine revision c4cd48e186
• Dart version 3.3.4
• DevTools version 2.31.1
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly
to perform update checks and upgrades.
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at E:\androidSDK
• Platform android-UpsideDownCakePrivacySandbox, build-tools 34.0.0
• ANDROID_HOME = E:\androidSDK
• ANDROID_SDK_ROOT = E:\androidSDK
• Java binary at: E:\androidStudio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.6)
• Visual Studio at E:\visualStudio
• Visual Studio Community 2022 version 17.7.34221.43
• Windows 10 SDK version 10.0.22621.0
[√] Android Studio (version 2023.2)
• Android Studio at E:\androidStudio
• 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 17.0.9+0--11185874)
[√] Connected device (4 available)
• M2012K11AC (mobile) • cb9fcf8 • android-arm64 • Android 13 (API 33)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [ 10.0.19045.4291]
• Chrome (web) • chrome • web-javascript • Google Chrome 123.0.6312.123
• Edge (web) • edge • web-javascript • Microsoft Edge 123.0.2420.97
[√] Network resources
• All expected network resources are available.
from flutter.
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'Flutter Demo',
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: ListView(
children: <Widget>[
Container(height: 200),
TextFormField(autofocus: true),
Container(height: 100),
TextFormField(autofocus: true, obscureText: true),
],
),
),
);
}
}
@darshankawar I have reproduced this problem. My model is Xiaomi. If the secure keyboard and normal keyboard are switched, the page will flicker. It may be related to obscureText: true
.
from flutter.
f549b09d0bd9e512fec403cba31028dc.mp4
from flutter.
TextFormField(autofocus: true, obscureText: true),
Thanks for the updates. If you set it to false obscureText
, do you still get same behavior ?
I currently don't have the said physical device to verify on, although it didn't replicate using Pixel emulator. There's a similar issue open but for iOS.
Is there a way for you to check on other devices if you have to know if it is specific to a device or occurs on other devices (physical) as well ?
from flutter.
@darshankawar Thank you for your help. obscureText false is normal. What I guess is caused by the conflict between the keyboard of Android and the safe keyboard
from flutter.
It’s different from the #88354 you mentioned. The page on my side was pushed up and then bounced back.
from flutter.
@laterdayi
We tried on different devices (Pixel, Realme 6 and Galaxy Tab A7 Lite) but weren't able to replicate.
Is it the default virtual keyboard your phone using or any other ? Or maybe it is specific to Xiaomi device only.
Also, can you check if there's any activity keyboard properties in `AndroidManifest file or any relevant property need to be added in the file ?
from flutter.
@darshankawar What I think is that when obscureText true false is used, there is a large amount of jashing caused by different popup keyboards. There is no problem in ios. I will try different Android real devices later, and I will synchronize the result to you later
from flutter.
This may be related to Xiaomi's own security keyboard, whether there is a solution
This is what happens when I turn the security keyboard on and off
18806dd31169639fdd7b82a387f10e29.mp4
from flutter.
Since it seems to be specific to secure keyboard, it could be related / similar to #140369
from flutter.
Since it seems to be specific to secure keyboard, it could be related / similar to #140369
It might be due to the secure keyboard causing the issues, but while #140369 is about the loss of focus, the problem I'm encountering is that the page bounces because of the secure keyboard.
from flutter.
It could be both because of the security keyboard, but one is the loss of focus, one is the page will shake because of it
from flutter.
Thanks for the update. We tried by enabling secure keyboard and ran on Realme 6 on which it is not replicable.
Screen.Recording.2024-04-22.at.12.42.32.mov
Based on the report, keeping the issue as it seems device, make and model specific only using secure keyboard.
from flutter.
Thanks for the update. We tried by enabling secure keyboard and ran on Realme 6 on which it is not replicable.
Screen.Recording.2024-04-22.at.12.42.32.mov
Based on the report, keeping the issue as it seems device, make and model specific only using secure keyboard.
Was it tested on a real machine or a simulator?
from flutter.
my device is Redmi K40
from flutter.
Related Issues (20)
- [Impeller] DrawPoints golden is broken on m1 mac
- flutter app not building to some kotlin kotlinOptions not being specified HOT 3
- Support privacy manifests for non-plugin packages calling required reason APIs directly via FFI HOT 8
- Consider using Freetype for font rendering in flutter_tester's software renderer (for goldens) HOT 2
- IconTreeShakerException: Invalid ConstFinder result HOT 12
- Audit build797-m9 in prod pool HOT 3
- [go_router] push future does not complete if popping shellroute
- Flutter Inspector Crash ! HOT 2
- Insufficient permissions to the resource at the https://pub.dev package repository HOT 3
- local_auth plugin throws MissingPluginException for some Android users when prompting for auth on app launch/resume HOT 6
- [web:a11y] input.value test is a noop
- Semantics of FadeInImage doesn't show in test HOT 1
- Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.media.ImageReader.getSurface()' on a null object reference HOT 1
- [Impeller] ColorBurn not work with CustomPaint.
- AndroidView requires api level 23 or greater since Flutter 3.19 without any breaking change warnings HOT 2
- Google Maps Issues- Flutter HOT 3
- Reference material spec for text scaling when available in `TabBar` for the label
- [tool_crash] StateError: Bad state: Future already completed HOT 2
- How can I contribute to this project? HOT 1
- After picking the image, the Scaffold bottomSheet is half covered by the keyboard HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.