Add Comment Sample Project
Hi everyone, Today I am going to develop simple " Add Comment " project. I use following code to show comment icon. IconButton comment = IconButton( iconSize: 35.0 , icon: Icon(Icons. chat_bubble_outline ,color: Colors. grey ), onPressed: ()=> _commentButtonPressed(), ); return ListTile( leading: comment, ) class CommentScreen extends StatefulWidget { final String postId ; const CommentScreen(document, this . postId ); @override _CommentScreenState createState() => _CommentScreenState( postId: this . postId , ); } class _CommentScreenState extends State<CommentScreen> { final String postId ; final TextEditingController _commentController = TextEditingController(); _CommentScreenState({ this . postId }); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text( "Comments" , style: TextStyle(color: Colors. black )