Repository navigation
fix(plugins): 在插件市场显示已安装插件的删除入口 - #949
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与结果
从插件市场安装插件后,卡片只显示“已安装”或“更新”,无法在市场中卸载。现在已安装的非内置插件显示“删除”;有更新时保留“更新”,并列显示删除操作。删除前确认,执行期间显示进度,完成后刷新实际安装索引,卡片恢复为“安装”。
安装或更新后也改为从插件索引重新同步本地 ID,确保市场 ID 与插件清单 ID 不同时,删除操作仍针对真实已安装插件。窄屏下操作区可以换行,避免按钮溢出。
验证
flutter analyze --no-pub --no-fatal-infos --no-fatal-warnings lib/themes/nipaplay/widgets/plugin_market_dialog.dartflutter test --no-pub test/tvos_large_screen_adaptation_policy_test.dart test/plugins/plugin_runtime_resolution_test.dart(8 个测试通过)