【发布时间】:2020-07-04 03:21:18
【问题描述】:
我想在用户点击按钮时打开设置。
我可以看到为设置 here 定义的意图 Settings.ACTION_SETTINGS
我正在使用包Android_intent
代码:
AndroidIntent intent = AndroidIntent(
action: 'Settings.ACTION_SETTINGS',
);
await intent.launch();
但是,我得到了错误:-
E/flutter (14266): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, No Activity found to handle Intent { act=Settings.ACTION_SETTINGS (has extras) }, null)
如何打开设置页面表单flutter?
【问题讨论】:
标签: android flutter android-intent settings