fluttercommunity / fluttercommunity/flutter_webview_plugin
Enabling an option to ignore system font setting for the webview in Android
- Lenguaje dominante
- Java
- Estrellas
- 1.5k
- Forks
- 938
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
## 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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Localiza la configuración de Android WebView que está detrás de WebviewScaffold y revisa cómo se exponen sus ajustes. Usa el comportamiento propuesto de textZoom como punto de partida y define qué debe hacer la nueva opción cuando esté habilitada o deshabilitada. Se considera terminado cuando el plugin expone la opción y el comportamiento de WebView es coherente con la configuración elegida.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- android, css, flutter, html, java
- Área
- mobile, web-dev
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100