Giter Club home page Giter Club logo

Comments (16)

darshankawar avatar darshankawar commented on May 22, 2024

@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.

laterdayi avatar laterdayi commented on May 22, 2024
[!] 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.

laterdayi avatar laterdayi commented on May 22, 2024
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.

laterdayi avatar laterdayi commented on May 22, 2024
f549b09d0bd9e512fec403cba31028dc.mp4

from flutter.

darshankawar avatar darshankawar commented on May 22, 2024

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.

laterdayi avatar laterdayi commented on May 22, 2024

@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.

laterdayi avatar laterdayi commented on May 22, 2024

It’s different from the #88354 you mentioned. The page on my side was pushed up and then bounced back.

from flutter.

darshankawar avatar darshankawar commented on May 22, 2024

@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.

laterdayi avatar laterdayi commented on May 22, 2024

@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.

laterdayi avatar laterdayi commented on May 22, 2024

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.

darshankawar avatar darshankawar commented on May 22, 2024

Since it seems to be specific to secure keyboard, it could be related / similar to #140369

from flutter.

laterdayi avatar laterdayi commented on May 22, 2024

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.

laterdayi avatar laterdayi commented on May 22, 2024

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.

darshankawar avatar darshankawar commented on May 22, 2024

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.

laterdayi avatar laterdayi commented on May 22, 2024

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.

laterdayi avatar laterdayi commented on May 22, 2024

my device is Redmi K40

from flutter.

Related Issues (20)

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.