Click here to Skip to main content
15,893,381 members
Everything / Mobile Apps / Flutter

Flutter

Flutter

Great Reads

by Meshack Musundi
Implementing the MVVM pattern in Flutter using ScopedModel
by ThatsAlok
Let's explore the world of StateFulWidget with respect to Flutter
by ThatsAlok
Flutter ListView: A scrollable control for everyday need
by ThatsAlok
Let's explore Flutter Grid view and MediaQuery

Latest Articles

by Meshack Musundi
Implementing the MVVM pattern in Flutter using ScopedModel
by ThatsAlok
Object Oriented Programming in DART
by ThatsAlok
Let's explore Flutter Grid view and MediaQuery
by ThatsAlok
Flutter ListView: A scrollable control for everyday need

All Articles

Sort by Updated

Flutter 

14 Apr 2024 by gacar
I have firebase realtime database. When I manually change data on the Firebase console, vscode stops responding and throws the following error. Error: TypeError: Instance of '_Exception': type '_Exception' is not a subtype of type...
10 Mar 2024 by Andre Oosthuizen
Quote: Thanks for your response. I asked this question in more detail on stackoverflow. Unfortunately I will not be visiting StackOverflow to view your question, I doubt i if anyone else would. Please give full detail here by using the Improve...
9 Mar 2024 by gacar
I want use a google fonts icon. I have Code point (e88e, info icon). But i cannot get right icon. How can i get icon from google icons by Code point? Thanks. This is icon link: Material Symbols and Icons - Google Fonts[^] import...
3 Mar 2024 by M-Badger
The issue with your code is that you're trying to assign a value to value1A directly in the class body of B. In Dart, you can’t assign values to inherited variables directly in the class body. You should do this inside a method or constructor. ...
3 Mar 2024 by gacar
Hello, I want set a value of extended class. How can i do it? Thanks. class A { String? value1A; A({ this.value1A, }); } class B extends A { String value1B = ""; value1A= ""; //
1 Mar 2024 by Member 14933789
Hey, codeproject wonderful community! I am trying to implement the Chewie Flutter package into my app as a custom widget and I got everything down and made it as customizable as possible. It complies well, but when I run it on the web, android,...
25 Feb 2024 by SulfySul
I have been working on Flutter development using SQL Database + ASP.NET REST API for the backend. However, I'm now considering transitioning to either Firebase or Appwrite due to their increasing popularity and ease of implementation. As I plan...
16 Feb 2024 by Andre Oosthuizen
You have basically answered your own question without knowing it - Quote: Then I made my consumers.py (here I'm a little bit confused, isn't it better to refer to my room unique_id instead of name, since the ID is unique and not the name in my...
16 Feb 2024 by gsemerdz
I'm trying to establish a connection with my Django backend and Flutter code using WebSockets, but unfortunately I'm unable to do so, went through many articles and videos and everyone is basically doing the same without receiving an error.....
8 Feb 2024 by Dave Kreskowiak
The message "Cannot read properties of undefined" is javascript-ese for trying to use an object that doesn't exist, or is null in other lanugages. I don't see a "providers" property or method being called anywhere in the code you posted, so that...
7 Feb 2024 by Karthik Shettigar
import 'package:flutter_web3/flutter_web3.dart'; import 'package:web3dart/web3dart.dart' as web; import 'package:web3dart/credentials.dart'; String currentAddress = ''; bool get isEnabled = ethereum != null; bool get isConnected =isEnabled &&...
28 Jan 2024 by gacar
I want to use if condition in the icon widget, but Dart gives an error. How should it be used correctly? Thanks. class Cell extends StatelessWidget { const Cell({super.key, this.caseTrend = false}); final bool caseTrend; @override ...
28 Jan 2024 by M Imran Ansari
Unfortunately, you can’t write if statement directly inside your widget properties as if you were writing in your method or function. But there are a few ways you can write a conditional statement inside your widget. You can use the ternary...
21 Jan 2024 by Richard MacCutchan
Se https://stackoverflow.com/questions/77663954/flutter-failed-to-extract-native-libraries-res-18[^]
20 Jan 2024 by Kavya Bhargava
I am receiving this error: Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install /Users/XXX/FlutterDev/XXX_app/build/app/outputs/flutter-apk/app-debug.apk: Failure [INSTALL_FAILED_CONTAINER_ERROR: Failed to...
17 Jan 2024 by Kavya Bhargava
I after a long time was working on one of my projects so I updated my flutter code and packages too. I started receiving error: A problem occurred configuring project for "package name". At first, it was for cloud firestore and firebase ones but...
24 Nov 2023 by Graeme_Grant
For Identity, cookies are okay for non-mobile applications. For mobile, you will need to use Bearer tokens.
24 Nov 2023 by Trần Toàn from Hanoi
I am encountering difficulties with my Duende Identity Server implementation. The server successfully provides tokens to a WPF Desktop client, but I'm facing issues when trying to obtain an access token from the server using a mobile app. I...
20 Nov 2023 by wseng
You need to run flutter packages pub run build_runner build after flutter pub run build_runner watch --delete-conflicting-outputs
16 Nov 2023 by Vardaan Grover
I am facing issues deploying my Flutter web app to Firebase Hosting. The deployment process was working fine, but now I'm encountering a persistent HTTP 400 error with the message "Precondition check failed" during deployment. The deployment...
19 Oct 2023 by 10. Gunawan.Widya.Nugraha XI RPL 2
I'm facing a problem in my Flutter project where I'm trying to generate the $initGetIt function using Injectable, but it's not being generated as expected. Here are the details of the issue: I've checked my pubspec.yaml, and the dependencies...
13 Sep 2023 by Gcobani Mkontwana
I have created a signup.php file as back end API, the problem now is how do I call this file on my flutter app(registration page)? I am getting cors issue. Maybe I am missing some steps. Please advice because I can't use locahost:port number as...
13 Sep 2023 by Chris Copeland
One possible solution would be to configure CORS by placing a .htaccess file in your PHP base directory and configure the CORS headers in there, as such: Header set Access-Control-Allow-Origin "*" Header set Access-Control-Allow-Headers "origin,...
28 Aug 2023 by EBENEZER OCANSEY
In my app, person A makes a post in a collection called "ADS". Person B clicks on the post and clicks on the button to send a request to person A. This creates a subcollection called "REQUESTS". I want that in the case where person B clicks on...
28 Aug 2023 by Andre Oosthuizen
Your code is generally on the right track, I made small tweaks for you but as your code is now, you should be fine - StreamBuilder( stream: FirebaseFirestore.instance .collection("ADS") .doc(widget.selectedAds?['Uid'] ?? "") ...
24 Jul 2023 by MohammedZr
Hello I'm trying to use the google_maps_flutter package to make a Google map for the Client so that he can Track and locate Orders within the application the maps are not showing from the first time Even though you see in this code the GoogleMap...
12 Jun 2023 by Aryaveer Chaudhary
I am writing a federated plugin in Flutter but acc to url_launcher . I have to create app_facing_package, platform_package and platform_interface_package but I don't know what to write in these packages What I have tried: in docs, there is a...
12 Jun 2023 by Richard MacCutchan
See Developing packages & plugins | Flutter[^].
5 Jun 2023 by Luis M. Rojas
Hello everybody, I have a flutter app. We published the app on google play Is there is a way that user recive a msg when a new version is it ready on google play? Of course, the user ( i suppose) first has to open the app on the movil What I...
5 Jun 2023 by Andre Oosthuizen
The easiest way is to make use of the version component to manage any updates - 1. Version your Android App steps[^] 2. How to inform the users of an Android app that a new version is available in the Google Play Store through Notification[^] 3....
5 Jun 2023 by Dave Kreskowiak
The best source of information on this would be a forum dedicated to the Google Play API. Google Play Developer Community[^]
5 Jun 2023 by Dan Sep2022
I have base64 encoded string version of docx file stored in my database and I have to embed into my Flutter app to view the content of the file and I come up with this solution using webview_flutter which apparently I got from ChatGPT ...
28 Mar 2023 by EBENEZER OCANSEY
I have been able to query a data in a subcollecion directly using collectiongroup with the following code in flutter: What I have tried: final uid = FirebaseAuth.instance.currentUser!.uid; QueryDocumentSnapshot>?...
15 Mar 2023 by Alva Rizky
On this code, i try to create Delete features, which is can delete history/data that already added. Here's the code : menuOption(String value, History history) async { if (value == 'update') { Get.to(() => UpdateHistoryPage( ...
15 Mar 2023 by OriginalGriff
Thee error message is pretty explicit: the function returns a nullable value - bool? - and you are trying to store it in a non-nullable type - bool; the types are not the same. The simplest solutions are to change the type of yes to bool?, or...
15 Mar 2023 by Tiaan 2023
I want to save a bool value (The value is already made in my Firebase Realtime Database whith a default value of false), but when I save the value it doesn't save. I follow the videos I use their code examples (modified to work for my code ofc)...
14 Mar 2023 by Graeme Perrins
I have a Flutter scrolling GridView builder that looks like it renders the ListTiles below the Container the GridView is placed in. It appears it renders placeholder grid list tiles even when they are not within the Container bounds. It looks...
10 Mar 2023 by Alva Rizky
Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'user . FormatException: Unexpected character (at character 1) Here its my...
10 Mar 2023 by OriginalGriff
To add to what Richard has said ... You should expect to get syntax errors every day, probably many times a day while you are coding - we all do regardless of how much experience we have! Sometimes, we misspell a variable, or a keyword; sometimes...
10 Mar 2023 by Richard MacCutchan
Look at the text, you have a space between id_ and user..
8 Mar 2023 by Richard MacCutchan
This is the same issue as your previous question at Type 'null' is not a subtype of type 'string' while trying to retrieve data from list into listview[^]. You need to look at the code at ... var custUsernameGet = await...
8 Mar 2023 by Dan Sep2022
I have a function that will retrieve username from database and that username value will be stored in global string variable, everything works, and my goal is to display that username variable on the AppBar text but I keeps getting "Null is not a...
5 Mar 2023 by Dan Sep2022
This problem is driving me crazy and I don't know what to do anymore I'm completely lost and it's ruining my life. I'm trying to insert a list values which I retrieved from MySQL database into listView when the user pressed a button but the...
18 Feb 2023 by Kavya Bhargava
My flutter share button is running extremely slow. Reason I think is that it has to screenshot the image after getting from firebase for each specific news.(My Assumption) Share button: IconButton( onPressed: () async { ...
14 Feb 2023 by Dan Sep2022
I have this StatefulWidget that supposed to retrieve data from MySQL database based on condition and add those retrieved values into an array so I can use the array values to be display on ListView. My Problem is that sometimes when the array...
27 Jan 2023 by Luis M. Rojas
Hello, I am new in flutter, this is my code to connect to an API REST final String _baseUrl = 'https://localhost:7254/api/login/getTokenLogin'; final Map authData = { 'email': email, 'password': password }; ...
27 Jan 2023 by Luis M. Rojas
I found this soluction and its WORKS for me: class PostHttpOverrides extends HttpOverrides { @override HttpClient createHttpClient(context) { return super.createHttpClient(context) ..badCertificateCallback = ...
17 Jan 2023 by Andre Oosthuizen
As per the documentation found HERE, try the following - var source = 'flutter app'; final decrypted = encrypter.decrypt64(source, iv: iv); For normal Direct decryption, you can use the decrypt method directly, as: final plainText =...
17 Jan 2023 by Dan Sep2022
Hello, I'm trying to decrypt a text from MySQL db (stored in BLOB column) and I encountered with this issue where when I tried to decrypt that value I got an error saying Unhandled Exception: type 'String' is not a subtype of type 'Encrypted'...
10 Jan 2023 by Kavya Bhargava
I have connected this app with my firebase console. I am trying to upload videos from the app to firebase storage so that another app connect to same console (which has authentication) can display it I am getting this error when I upload: ...
20 Oct 2022 by enamul haque
In "bb" variable all data show in json format when i debugged. but show this error "HTTP Error 400. The request hostname is invalid". This json data is working in Postman Please Help!!!! What I have tried: void send() async { var...
12 Oct 2022 by abimjoshi7
I am working with an expansion tile in a flutter that shows user information in an irregular hierarchical order. I am optimizing the code to increase the performance of the expansion tile widget. Unit-III hierarchy differs from the rest and I am...
4 Oct 2022 by ago2486
Quote: here's what the error says: The 'data' method cannot be invoked unconditionally because the receiver may be 'null'. Try making the call conditional (using '?.') or adding a null check to the target and here is the full code: //import...
3 Oct 2022 by ago2486
good evening sir, ladies, I have an error that I can't resolve despite the tips I got on the net. please guide me. I am told this: The method 'data' can't be unconditionally invoked because the receiver can be 'null'. Try making the call...
3 Oct 2022 by Richard Deeming
Follow the very clear instructions from the error message: Quote: Try making the call conditional (using '?.') or adding a null check to the target ('!'). So either: Map? _productMap = productSnap.data?.data(); Or, if you're certain the data...
27 Aug 2022 by mustafa aboud
im confused among dart dart and kotlin so if i basically dont know about programming will easily learn dart ? what beside should i learn plus flutter ? dart will be enoght to build web apps and android ( with flutter ( ? What I have tried: ...