mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-10-31 02:04:52 +00:00 
			
		
		
		
	Put post create form into a card
This commit is contained in:
		| @@ -8,6 +8,7 @@ import 'package:comunic/models/new_post.dart'; | ||||
| import 'package:comunic/ui/dialogs/input_url_dialog.dart'; | ||||
| import 'package:comunic/ui/dialogs/input_youtube_link_dialog.dart'; | ||||
| import 'package:comunic/ui/dialogs/new_survey_dialog.dart'; | ||||
| import 'package:comunic/ui/widgets/post_container_widget.dart'; | ||||
| import 'package:comunic/utils/files_utils.dart'; | ||||
| import 'package:comunic/utils/intl_utils.dart'; | ||||
| import 'package:comunic/utils/post_utils.dart'; | ||||
| @@ -99,7 +100,9 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> { | ||||
|  | ||||
|   @override | ||||
|   Widget build(BuildContext context) { | ||||
|     return Column( | ||||
|     return PostContainer( | ||||
|       child: Card( | ||||
|         child: Column( | ||||
|           children: <Widget>[ | ||||
|             // Post text content | ||||
|             Padding( | ||||
| @@ -108,7 +111,8 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> { | ||||
|                 controller: _postTextController, | ||||
|                 minLines: 3, | ||||
|                 maxLines: 10, | ||||
|             decoration: InputDecoration(hintText: tr("Create a new post...")), | ||||
|                 decoration: | ||||
|                     InputDecoration(hintText: tr("Create a new post...")), | ||||
|                 onChanged: (s) => setState(() {}), | ||||
|               ), | ||||
|             ), | ||||
| @@ -201,6 +205,8 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> { | ||||
|               ), | ||||
|             ) | ||||
|           ], | ||||
|         ), | ||||
|       ), | ||||
|     ); | ||||
|   } | ||||
|  | ||||
| @@ -338,7 +344,6 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> { | ||||
|  | ||||
|   /// Pick a new YouTube video | ||||
|   Future<void> _pickYouTubeVideo() async { | ||||
|  | ||||
|     final youtubeID = await showInputYouTubeIDDialog(context, _youtubeID); | ||||
|  | ||||
|     if (youtubeID == null) return; | ||||
| @@ -347,7 +352,6 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> { | ||||
|     setState(() { | ||||
|       _youtubeID = youtubeID; | ||||
|     }); | ||||
|  | ||||
|   } | ||||
|  | ||||
|   /// Submit new post | ||||
|   | ||||
		Reference in New Issue
	
	Block a user