-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
How to handle the combined sliding of webview and native widgets #61
Comments
#35 There is an same problem here. |
My leadership has again urged the progress of the project. Anyone can help me? |
did you try to put Widget _buildWebView() {
return Expanded(
child: Container(
child: InAppWebView(initialUrl: 'https://github.com/pichillilorenzo/flutter_inappbrowser'),
)
);
} |
Yes, I tried it, but it is the same as before. Today i am going to try the way of get the height by JS functions and then get the height through JavaScriptHandler. Hope it works, |
Do you have this problem only on one platform or both Android and iOS? |
The above problem is on Android.
|
Ok!
|
After editing the Info.plist file, WebView is normally displayed on IOS, but it has the same problem as Android. |
Ok, so maybe it is something related to |
The example works well before i do this: Widget build(BuildContext context) {
return SingleChildScrollView(...);
} In fact, As long as we can achieve this, anything is fine, regardless of |
I tried to set the height manually like this: Container(
height: _webHeight,
child: InAppWebView(
initialData: InAppWebViewInitialData(_newsContentBean.content),
onWebViewCreated: (InAppWebViewController controller) {
webViewController = controller;
},
),
); But when the height is greater than 5,500, the app crash without any log( Only Android ). |
This problems happens to me. |
Steps to Reproduce
Container(
height: 6000,
child: InAppWebView( initialData: InAppWebViewInitialData("<p>asd</p>") ),
);
Logs
|
@rolends1986 Yes, this is my final solution too, but have you ever find that the app running on Android will crash when the height exceeds a certain value ? |
|
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it. |
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 and a minimal reproduction of the issue. |
I want to put a InAppWebView into a Column in SingleChildScrollView, but it cause the page disappear.
I use those code to test.
Then I think that as long as I can get the InAppWebView's height, I can solve this problem by wrapping a Container.
Can i get the InAppWebView's height?
The text was updated successfully, but these errors were encountered: