95,789 questions
Score of -1
1 answer
104 views
Is it good practice to store GlobalKeys in Bloc state to scroll a chat list to the newest message?
I'm building a chat UI similar to ChatGPT. Whenever the user sends a message or the AI responds, I want the list to scroll so the newest item's.
void _scrollToTarget(GlobalKey key) {
// Ensure the ...
Tooling
0
votes
3
replies
74
views
How can I learn Riverpod if I'm coming from GetX?
I'm trying to learn Flutter Riverpod, but I'm struggling to understand it. I have experience with GetX, so I'm used to its way of managing state. Riverpod feels completely different, and I'm having a ...
Tooling
0
votes
2
replies
133
views
Is this the right architecture for a real-time virtual clothing try-on app?
I'm currently working on a personal project called SmartCam, and I'd really appreciate some feedback from anyone who's worked with AR, computer vision, Unity, MediaPipe, or virtual try-on systems.
The ...
Score of -1
0 answers
81 views
How to achieve fine-grained UI rebuilds in Flutter using the solid_signals package? [closed]
I am currently working on a Flutter project and exploring the new solid_signals state management package. My goal is to achieve fine-grained reactivity and surgical UI rebuilds without relying heavily ...
Advice
0
votes
3
replies
64
views
Dart: how to get all stations with their details loaded?
I have a Flutter app with a repository that has these methods:
Future<List<Station>> getAllStations();
Future<Station> getStationDetail(String id);
The problem is that ...
Best practices
0
votes
0
replies
88
views
Flutter mobile_scanner: Proper way to handle/validate check digit for UPC/EAN barcodes?
I am using the mobile_scanner package in Flutter to scan different types of barcodes (UPC-A, UPC-E, EAN-13, EAN-8, Code128, etc.).I am using the validation?
Is there any Dart/Flutter package for ...
Score of 0
1 answer
105 views
Why does getSingleOrNull() return a non-nullable type in Drift when checking if a user exists?
According to the database structure, email cannot be null. I want to write a function that checks whether a user with that email already exists, but I'm getting an error
Future<bool> isEmEx(...
Advice
0
votes
1
replies
56
views
Image carousel slider with custom indicator demo
je veux faire le carrousel d'un container comprenant une image en background , un texte et un bouton . je souhaite aussi avoir des mouvements de points qui montrent l'evolution du slide.et une duree ...
Score of 1
0 answers
87 views
google_mlkit_face_detection: FaceDetector.processImage() crashes only in Android release (works in debug)
I'm seeing a native crash from google_mlkit_face_detection that only happens in Android release builds.
Environment
Flutter: (version)
google_mlkit_face_detection: (version)
google_mlkit_commons: (...
Score of 0
1 answer
69 views
How to change the bottom safe area (home indicator area) color on iOS in Flutter?
I'm working on a Flutter application and I want to change the color of the bottom area on iOS (the area behind the home indicator / bottom safe area).
On Android, I was able to change the system ...
Advice
0
votes
0
replies
70
views
ImageProvider/NetworkImage : fetch metadata with image data, e.g. image bounds for a map overlay?
I am displaying a map (flutter_map) which displays an image overlay when the user clicks on a point on it. The problem is that the server sending the image overlay sends also JSON metadata which ...
Score of -1
1 answer
135 views
Android studio virtual device not showing up
Android virtual device in android studio not showing up.
I don't know how to use the android virtual device and run the app on it
Android virtual device in android studio not showing up.
I don't know ...
Best practices
0
votes
0
replies
74
views
Best practice to build a model object across multiple screens
So I am learning flutter, one of the features in the app I am building is creating an activity. The creation process spans multiple screens and the object must be stored in Firebase and I am unsure if ...
Advice
0
votes
2
replies
167
views
What is the best architectural approach for handling BuildContext in Flutter without passing it everywhere or using nullable fallbacks?
In Flutter, I often face a design dilemma when building reusable widgets and service/helper classes that need to show UI elements like dialogs, bottom sheets, or navigation actions.
The core issue is ...
Score of -1
1 answer
176 views
SVG not showing in Flutter
I’ve been dealing with this problem for a while now: even though I’m using the flutter_svg package, my SVG file won’t appear in the emulator. The SVG is just a simple droplet icon with an outline, ...