put video_handler thread & update android build

This commit is contained in:
csf
2022-09-15 16:09:07 +08:00
parent af656f9489
commit 1e9e00ec51
3 changed files with 3 additions and 5 deletions

View File

@@ -271,7 +271,7 @@ _keepScaleBuilder() {
}
_registerEventHandler() {
if (desktopType != DesktopType.main) {
if (isDesktop && desktopType != DesktopType.main) {
platformFFI.registerEventHandler('theme', 'theme', (evt) async {
String? dark = evt['dark'];
if (dark != null) {