flutter_widget_from_html icon indicating copy to clipboard operation
flutter_widget_from_html copied to clipboard

xcode build error "'messages.g.h' file not found"

Open kipenlink opened this issue 4 months ago • 2 comments

flutter 3.22.0 .yaml:flutter_widget_from_html: ^0.16.0 or 0.15.3 xcode 16.2 vscode Version: 1.103.2 (Universal)

👇 WakelockPlusPlugin.m #import "WakelockPlusPlugin.h" #import "messages.g.h" /// not found #import "UIApplication+idleTimerLock.h"

修改为:#import "./include/wakelock_plus/messages.g.h" 可解决报错问题 新增error: ../../../.pub-cache/hosted/pub.flutter-io.cn/chewie-1.8.7/lib/src/material/material_controls.dart:473:35: Error: The method 'withValues' isn't defined for the class 'Color'.

kipenlink avatar Sep 15 '25 07:09 kipenlink

You need to specify a version of chewie that works with your Flutter version. Or if you don't need to render VIDEO tags, switch to use flutter_widget_from_html_core.

daohoangson avatar Sep 16 '25 05:09 daohoangson

已收到,谢谢。

kipenlink avatar Sep 16 '25 05:09 kipenlink