-2
\$\begingroup\$

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.
\$\endgroup\$
3
  • \$\begingroup\$ Is that the entire code? There's not a lot to review, honestly. \$\endgroup\$ Commented 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\$ Commented 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\$ Commented 9 hours ago

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.