我对我的颤振项目有一个网络视图。在web视图小部件中,我使用权限处理程序检查位置权限,如下所示:
void _checkLocationPermission() async {
if (await Permission.location.request().isGranted) {
Position position = await getCurrentPosition(desiredAccuracy: LocationAccuracy.high);
if (position == null) {
latitude = "";
我想从网格视图中隐藏应用程序图标并保存它。我可以将应用程序信息作为可变集合字符串保存到共享首选项中并获取它,但无法将字符串转换为应用程序信息并显示在我的网格视图中 我的应用活动 private var applist: List<ApplicationInfo>? = null
private var listadaptor: ApplicationAdapter? = null
private var grid: GridView? = null
private var mSelected: ArrayList<Any> = ArrayList()
var con
当我按下一个按钮时,我正在尝试保存数据列表,然后我尝试将数据访问到其他screen.but中,它抛出了错误 我得到一个错误 E/flutter (17394): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: type 'List<String>' is not a subtype of type 'FutureOr<String>'
E/flutter (17394): #0 SharedPrefrence.getCartItem (pack