Gradle error while running app in flutter
I was writing my code and didn't touch any files of the project. Then i wanted to start the app again and it shows me this error : ' FAILURE: Build failed with an exception. * What went wrong: A…
I was writing my code and didn't touch any files of the project. Then i wanted to start the app again and it shows me this error : ' FAILURE: Build failed with an exception. * What went wrong: A…
How to pass the parameter getString need String? but read() used String class SharedPref { read(String key) async { final prefs = await SharedPreferences.getInstance(); return json.decode(prefs.getString(key)); // the error in this line } this is for sharedPreferences of flutter. how…
In order to save user credentials I use Firestore. In my app, I put an image picker only in the profile screen not in the authentication screen. I want the user to pick an image and upload it to Firebase…
I am using VS code when I create List without assigning values ...the compiler throw Error: Couldn't find constructor 'List': I tried to declare fixed length List but error occurs .please one can fix this I am beginner.
Is it possible to combine the two widgets? Now I'm studying flutter and if I want to keep my AppBar fixed or something else. Can I have both widgets? If it's possible, should I use the build widget on both?…
As a beginner, I faced the problem of the adaptability of my code. I have overflowed GridView, as I understand it in the daysBuilder() method.This is my crowded GridView I don't want to hardcode (with the help of fitting via…
I have app with a simple login system based in named routes and Navigator. When login is successful, the loggin route si pop from stack and the first route (home) is pushed, using Navigator.popAndPushNamed,'/first'). When the user is logged the…
i have radio list in flutter on different sheet i called the function of radio list on my home screen and i want if i click on the radio list it will navigate to my edit screen i had used…
This is a class UniqueId which is a valueobject. This is for checking equality and all that class UniqueId extends ValueObject<String> { @override final Either<ValueFailure<String>, String> value; factory UniqueId() { return UniqueId._( Right(const Uuid().v1()) ); } factory UniqueId.fromUniqueString(String uniqueId) {…
I have this widget: InkWell( onTap: () { print('Tapped'); }, child: Row( mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ Text('Text'), TextButton( // <- I tried to wrap it with AbsorbPointer. child: Text('Disable'), onPressed: null, ), ], ), ), It is an InkWell with…