fluttercommunity / fluttercommunity/flutter_webview_plugin

Enabling an option to ignore system font setting for the webview in Android

オープン
#895 コメント 1 件 リアクション 4 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
1.5k
フォーク
938
PR マージ指標
30日以内にマージされた PR はありません

説明

## Use case

I am currently facing a limitation with flutter_webview_plugin in Android.
When user changes font size on their device (Settings -> Accessibility -> Font Size), webview uses this adjusted font size.
That results overlapping texts and layouts of the content being incorrect.
So I need the webview to ignore the system font settings and load webview with specified font sizes in HTML/CSS.

## Proposal

The font size setting in Settings on user device affects the textZoom property of the webview.
In Android webview there is property we can set to force webview to display text in original sizes (specified in html/css of the web).

webView.getSettings().setTextZoom(100);

I am suggesting to add that property into the webview plugin. If there is any event that system font size must be used for webview as well, Please define a new setting in the WebviewScaffold to enable or disable this property.

eg: withTextZoom : true

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

WebviewScaffold の背後にある Android WebView のセットアップを特定し、その設定がどのように公開されているかを確認してください。提案されている textZoom の動作を出発点として、新しい設定を有効にした場合と無効にした場合に何を行うべきかを定義してください。プラグインがこのオプションを公開し、WebView の動作が選択した設定と一貫していれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, css, flutter, html, java
領域
mobile, web-dev
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。