Funshot
await FirebaseFirestore.instance.collection('questions').add({
'question': 'Tumi ke Gamini?',
// 'user' field optional, tai ekhane dei nai
'timestamp': FieldValue.serverTimestamp(),
'answered': false,
});
-
Jowhad Hossen Joy commented
await FirebaseFirestore.instance.collection('comments').add({
'comment': 'Besh bhalo lagse app ta!',
'timestamp': FieldValue.serverTimestamp(),
'userId': 'abc123', // optional
}); -
Jowhad Hossen Joy commented
My app a funny,sead,and anadar video .my app name Funshot app
-
Jowhad Hossen Joy commented
TextFormField(
decoration: InputDecoration(
labelText: 'Add a comment',
hintText: 'Write something nice...',
border: OutlineInputBorder(),
),
maxLines: 3,
onChanged: (value) {
// comment save kora logic ekhane likhba
},
)