[SOLVED] Flutter Error: The getter ā€˜body1ā€™ isnā€™t defined for the class ā€˜TextThemeā€™ ā€“ place_picker.

Error SOLUTION Here is what I found on StackOverflow Source (Stackoverflow):- https://stackoverflow.com/questions/69312392/how-to-resolve-error-the-getter-body1-isnt-defined-for-the-class-texttheme To fix this issue you have to make some changes to Two files 2. C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/place_picker-0.9.19-nullsafety/lib/widgets/search_input.dart Changes to Done Edit the lines in the dart package like below and it will work. Of course, the author should do this, but you can edit it yourself as well rich_suggestion.dartOriginal: TextSpan(text: boldText, style: style.copyWith(color: Theme.of(context).textTheme.body1!.color)), New: TextSpan(text: boldText, style: style.copyWith(color: Theme.of(context).textTheme.bodyText1!.color)), search_input.dartOriginal: Icon(Icons.search, color: Theme.of(context).textTheme.body1!.color), New: Icon(Icons.search, color: Theme.of(context).textTheme.bodyText1!.color),

Read more

[Solved] Flutter : [core/not-initialized] Firebase has not been correctly initialized. Have you added the ā€œgoogle-services.jsonā€ file to the project?

Error: Iā€™ve connected my flutter app to firebase by adding SHA1 key ( How to Get SHA-1 key in Android Studio for Firebase. ) and package name in firebase console, and also downloaded and provided google-service.json in my flutter app at android/app. But when i run app its Showing an error that iā€™ve not provided google-service.json file in my app. The Error Says ā€“ Solution I finally solve the problem after hours of effort. The ‘google-services.json’ plugin should be added

Read more

How to Crud Operation in Flutter App with Laravel API

INTRODUCTION: JSON is typically used to transmit data from a client to a server and from a server to a client. We’ll build a Flutter application in this post that can do the following things. Display data from the server, add data, edit server data, and display data from the client. Delete the server’s data.I believe that all of us who have used client-server data communication are familiar with these four functions, which are sometimes referred to as CRUD. Here,

Read more

How to set Icon on TextField Widget in Flutter App

In this example, we’ll demonstrate how to set an icon on a TextField widget to appear at the start and end of input in a Flutter application. The most effective technique to display the data type of a TextField is through icons. For further details, see the example below: Set the TextField Icon at the Head and Tail of Input Full Code Example: Output Screenshot: How to add icon inside the fieldYou need to use the prefixIcon attribute instead of

Read more

How to use foreach in the controller in Laravel.

Problem When I try to loop over a request in the controller, I receive the following error: Solution Problem: I’m having trouble with the Laravel 4 controller’s data looping. This is how my code looks: the outcome is a returning error. Undefined attribute: Illuminate\Database\Eloquent\Collection::$sku So, using this code, I try to improvise a little: Solution This will throw an error: Get Data from foreach loop in the controller

Read more

Failed to read PNG signature: file does not start with PNG signature

Error Solution: You might have used a JPEG file or some other image file format. Use PNG images to solve the error. The drawable directory can only have png type of images. If you are using an online platform to generate App Icon(launcher_icon), then use PNG Format or First convert JPEG to PNG and then used APP ICON GENERATOR 1 In my case also there was a jpg file instead of png, so I changed my extension and solve my

Read more

Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory

Error: Solution: The problem is that you have multiple Gradle processes that are still holding locks to your files. You can try running gradle –stop when this happens to stop any daemons that are running in the background (this usually helps). You can also check the state of your daemons by running gradle –status. For me this outputs: If you notice anything there, there may be an issue. Although –no-daemon and –no-parallel may be helpful, they will only serve to mask the true

Read more
1 2 3 4 9