-
Notifications
You must be signed in to change notification settings - Fork 28.6k
UiKitView should participate in the Flutter focus tree #34187
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
Comments
cc @cyanglaz |
Reproducible on the latest master Minimal reproducible code sampleimport 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Sample',
home: Scaffold(
appBar: AppBar(
title: Text('Sample'),
),
body: SingleChildScrollView(
child: Column(
children: [
TextField(),
TextField(),
Container(
height: 400,
child: WebView(initialUrl: "https://www.google.com/"),
),
],
),
),
),
);
}
} flutter doctor -v
|
@hellohuanlin also consider adding integration test for this, perhaps added to: |
@jmagman thanks for the info! |
@hellohuanlin I believe this was fixed in #105050, correct? |
@jmagman yep |
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 |
Right now selecting a text field inside a WebView doesn't change the framework's focus state so e.g a previously focused Flutter text field is still focused(and will show the caret animation).
On Android we've added added a focus node for AndroidViews which stays in sync with the platform view's focus state.
This is what it currently looks like on iOS when focus is moved from a Flutter text field to a WebView text field:
The text was updated successfully, but these errors were encountered: