mirror of
https://github.com/git-touch/git-touch
synced 2025-02-08 15:48:41 +01:00
parent
7521c40ee8
commit
11fc186091
@ -157,8 +157,15 @@ class ThemeModel with ChangeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool get shouldUseMarkdownFlutterView {
|
bool get shouldUseMarkdownFlutterView {
|
||||||
// WebView on macOS not working
|
// webview on macOS not working
|
||||||
return Platform.isMacOS || markdown == AppMarkdownType.flutter;
|
if (Platform.isMacOS) return true;
|
||||||
|
|
||||||
|
// android webview has some issues, prefer flutter
|
||||||
|
// https://github.com/git-touch/git-touch/issues/132
|
||||||
|
if (Platform.isAndroid && markdown == null) return true;
|
||||||
|
|
||||||
|
// otherwise, prefer webview
|
||||||
|
return markdown == AppMarkdownType.flutter;
|
||||||
}
|
}
|
||||||
|
|
||||||
// supported languages
|
// supported languages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user