mirror of
https://github.com/git-touch/git-touch
synced 2025-01-22 12:10:12 +01:00
parent
7521c40ee8
commit
11fc186091
@ -157,8 +157,15 @@ class ThemeModel with ChangeNotifier {
|
||||
}
|
||||
|
||||
bool get shouldUseMarkdownFlutterView {
|
||||
// WebView on macOS not working
|
||||
return Platform.isMacOS || markdown == AppMarkdownType.flutter;
|
||||
// webview on macOS not working
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user