skip to Main Content

Location Permission Status – always getting as denied in Flutter

I have created below method to check the location permission status in my flutter application: Future<void> checkLocationPermission( BuildContext context, UserCredential userCredential) async { locationPermissionStatus = await permission_status.Permission.location .request() .then((value) async { if (locationPermissionStatus.isGranted) { displayToast("granted"); await getCurrentLocation(context, userCredential); } else…

VIEW QUESTION

How to scroll page in flutter, dart?

My code for a page is like this. i need to scroll part below appbar. @override Widget build(BuildContext context) { return Container( decoration: const BoxDecoration( gradient: LinearGradient( begin: Alignment.topLeft, end: Alignment.bottomRight, colors: [Colors.deepPurple, Colors.black] ) ), child: Scaffold( appBar: AppBar(…

VIEW QUESTION
Back To Top
Search