Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextField can't be activated after keyboard fold in particular operate sequence in Ios #142437

Closed
wanjm opened this issue Jan 29, 2024 · 13 comments
Closed
Labels
r: duplicate Issue is closed as a duplicate of an existing issue

Comments

@wanjm
Copy link

wanjm commented Jan 29, 2024

Steps to reproduce

  1. tap the TextField, then keyboard popup and TextField is activated which cursor shine;
  2. change to Chinese mode, and input one Chinese, it is displayed in the TextField and with the cursor shine;
  3. fold the keyboard with the bottom-right key on the keyboard, TextField is not activated, and no cursor in it;
  4. tap the TextField again, the keyboard popup, but TextField is not activated and no cursor in TextField; there is no use to type keys and select character Chinese characters;
  5. old iPad with no apple pencil support will not reproduce this, and input engine character will not reproduce this

Expected results

  1. TextField can be activated again;

Actual results

  1. TextField can is not activated

Code sample

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const 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> {
  TextEditingController loginNameController = TextEditingController(text: "名字");
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Row(
        children: [
          const Padding(
            padding: EdgeInsets.only(right: 10),
            child: Text("登录名:"),
          ),
          SizedBox(
            width: 300,
            child: TextField(
              decoration: const InputDecoration(hintText: "请输入登录名"),
              controller: loginNameController,
            ),
          ),
        ],
      ),
    );
  }
}

Screenshots or Video

No response

Logs

Logs
[Paste your logs here]

Flutter Doctor output

it is reproduce able with
flutter 3.13.9 and 3.16.9 and master (4601341)
iPad 15.2 (7th generation) and iPad 16.5.1(6th generation)

@wanjm wanjm changed the title TextField can't be activated after keyboard fold in particular operate sequence TextField can't be activated after keyboard fold in particular operate sequence in Ios Jan 30, 2024
@wanjm
Copy link
Author

wanjm commented Jan 30, 2024

#142294 maybe it is root cause as this one

@wanjm
Copy link
Author

wanjm commented Jan 30, 2024

RPReplay_Final1706599510.mp4

the video covers following steps;

  1. app up, TextField is not active;
  2. tap the TextField and make it active and cursor shining;
  3. input two chinese character, and fold the keyboard using the right-bottom key on the keyboard;
  4. TextField is not focus and no cursor;
  5. Tap the TextField again, keyboard popup, but TextField is not active and no cursor;

@danagbemava-nc
Copy link
Member

Hi @wanjm, I can't seem to reproduce with the steps outlined above. See the video below. Am I missing anything?

RPReplay_Final1706601221.MP4

@danagbemava-nc danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 30, 2024
@wanjm
Copy link
Author

wanjm commented Jan 30, 2024

@danagbemava-nc

please use the PinYin Input method; (Chinese, Simplified, - Pinyin)
please use change your input method to Simplified Chinese

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 30, 2024
@danagbemava-nc
Copy link
Member

Hi @wanjm, I am using the simplified keybord, see the recording below.

Can you try upgrading to the latest version of iOS to see if you still experience this issue?

RPReplay_Final1706682691.MP4

@danagbemava-nc danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 31, 2024
@wanjm
Copy link
Author

wanjm commented Jan 31, 2024

@danagbemava-nc
I tested it on 17.1, there is no such problem;
could you please find iPad of 15 or 16, and try again.
thanks;

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 31, 2024
@huycozy
Copy link
Member

huycozy commented Feb 1, 2024

@wanjm I don't have a physical device, I check this issue on an simulator (iPad Pro, 12.9 inch, 5h gen, iOS 16.4 - support Apple Pencil) but don't see the issue.

Demo
Screen.Recording.2024-02-01.at.14.58.34.mov

Can you check if this issue occurs on a native app on your device? And does this occur with different input keyboards than Chinese, Simplified, - Pinyin?

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 1, 2024
@wanjm
Copy link
Author

wanjm commented Feb 1, 2024

  1. native app don't have this issue
  2. use the other input method with demo have no such issue;
  3. I have tested on 3 pad , all have such issue;

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 1, 2024
@wanjm
Copy link
Author

wanjm commented Feb 1, 2024

@wanjm I don't have a physical device, I check this issue on an simulator (iPad Pro, 12.9 inch, 5h gen, iOS 16.4 - support Apple Pencil) but don't see the issue.

Demo
Screen.Recording.2024-02-01.at.14.58.34.mov
Can you check if this issue occurs on a native app on your device? And does this occur with different input keyboards than Chinese, Simplified, - Pinyin?

simulator is different than real as big keyboard fold there is another smaller one, and the TextField is always active. but in real pad, TextField is not active after keyboard folded;

please check your video with that of mine, you will find the difference;

@huycozy
Copy link
Member

huycozy commented Feb 2, 2024

Thanks for checking this on native apps. Similar to #142294, I just checked this on a physical device (iPad Air 5) but still can't reproduce the issue.

I just found an issue that looks similar to this #138395. Could you try pressing Done on the keyboard instead of bottom-right button to see if the issue appears?

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 2, 2024
@wanjm
Copy link
Author

wanjm commented Feb 3, 2024

Thanks for checking this on native apps. Similar to #142294, I just checked this on a physical device (iPad Air 5) but still can't reproduce the issue.

I just found an issue that looks similar to this #138395. Could you try pressing Done on the keyboard instead of bottom-right button to see if the issue appears?

Press Done will not cause the issue, only the bottom-right key can cause the problem; and I think this issue is the same as #138395

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 3, 2024
@huycozy
Copy link
Member

huycozy commented Feb 5, 2024

Thanks for confirming that. Closing this as a duplicate of #138395.

@huycozy huycozy closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2024
@huycozy huycozy added r: duplicate Issue is closed as a duplicate of an existing issue and removed in triage Presently being triaged by the triage team labels Feb 5, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: duplicate Issue is closed as a duplicate of an existing issue
Projects
None yet
Development

No branches or pull requests

3 participants