\$\begingroup\$
\$\endgroup\$
3
Seeking code review for my Flutter messenger architecture. 14-year-old developer.
GitHub: https//github.com/vladbogus498-design/my_messenger
Code:
// chat_service.dart
class ChatService {
static Future<List<Chat>> getUserChats() async {
final snapshot = await FirebaseFirestore.instance
.collection('chats')
.where('participants', arrayContains: userId)
.get();
return snapshot.docs.map((doc) => Chat.fromFirestore(doc)).toList();
}
}
Toby Speight
88.3k14 gold badges104 silver badges327 bronze badges
New contributor
user31781818 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
-
\$\begingroup\$ Is that the entire code? There's not a lot to review, honestly. \$\endgroup\$Toby Speight– Toby Speight2025εΉ΄10ζ30ζ₯ 09:50:11 +00:00Commented 12 hours ago
-
\$\begingroup\$ You're right - that was a small snippet. Full project demo: π₯ Live Demo: youtube.com/shorts/UR3r0IuJN7g?si=W13o6MR9Nb8UWi6t Shows: - Real-time theme switching (AMOLED/gradients) - Working chats with Firebase - Complete UI & navigation - Premium profile features π± Full code: github.com/vladbogus498-design/my_messenger P.S. 14-year-old developer - first commercial-level Flutter project π \$\endgroup\$user31781818– user317818182025εΉ΄10ζ30ζ₯ 10:22:24 +00:00Commented 12 hours ago
-
2\$\begingroup\$ We can only review the code that's actually in the question. Code that's behind links can't be reviewed (partly because there's no control on it changing in a way that invalidates answers - or on it disappearing altogether). \$\endgroup\$Toby Speight– Toby Speight2025εΉ΄10ζ30ζ₯ 12:51:03 +00:00Commented 9 hours ago
default