Category : mobile

Recently I switched to DataStore and I want when the user clicks on the logout button, all data stored in data store will be removed, but when the user clicks the logout button and return to the application again, then faces this exception. java.io.IOException: /data/user/0/app.android.githubservice/files/datastore/mydatastore.preferences_pb.tmp could not be renamed to /data/user/0/app.android.githubservice/files/datastore/mydatastore.preferences_pb private fun logout() { ..

Read more

I will try to add a search feature in flutter my application but whenever I tried to search any item it’s duplicate all the items intent to show the result Code = final showP = Provider.of(context); ` _showsList.addAll(showP.shows); _showsForDisplay = _showsList; return SafeArea( child: Scaffold( backgroundColor: kBackgroundColor.withOpacity(.9), appBar: AppBar( backgroundColor: kBackgroundColor, centerTitle: true, shape: RoundedRectangleBorder( ..

Read more

I have been working on a flutter app and recently installed three firebase related pacakges firebase_core,cloud_firestore and firebase_storage. But after installation when I try to import them in a .dart file I am facing ‘The system cannot find the path specified import ‘package:quiver/core.dart’;’ error. So what should I do ,here is my pubspec.yaml file . ..

Read more

I want to dynamically change the size of the BottomNavigationView. I want exactly that; The following code works; bottomnNavigation.layoutParams.height = bottomnNavigation.height – 1 bottomnNavigation.requestLayout() but it doesn’t do exactly what I want; Also, if "height" is a number like 123, how do I reduce it in 100 steps? 123 / 100 = 1,23 But height ..

Read more

I know there are various similar threads on this but none answer my question. Please look at this most simple HTML code. <!doctype html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <style> html, body { margin: 0; height: 100%; background: linear-gradient(to top, blue, white); } </style> </head> <body> </body> </html> Viewed in Chrome ..

Read more

Currently I am trying to display data from my graphQL API to my Flutter, I run the query but it says such Error being displayed and here is my code Scaffold( body: Query( options: QueryOptions( documentNode: gql(_tags.getTags()), variables: { "vendor_id": _sp.getString(‘vendor_id’) } ), builder: (QueryResult result, {VoidCallback refetch, FetchMore fetchMore}) { //refetchQuery = refetch; if(result.data ..

Read more