mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +00:00
Adapt form to small screens
This commit is contained in:
parent
9a991b221c
commit
ee5f791638
@ -102,34 +102,39 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
// Text post button
|
||||
_PostOptionWidget(
|
||||
icon: Icons.text_format,
|
||||
selected: postKind == PostKind.TEXT,
|
||||
onTap: _resetPostSelection),
|
||||
|
||||
// Include image button
|
||||
_PostOptionWidget(
|
||||
icon: Icons.image,
|
||||
selected: postKind == PostKind.IMAGE,
|
||||
onTap: _pickImageForPost,
|
||||
),
|
||||
|
||||
// Include PDF button
|
||||
_PostOptionWidget(
|
||||
icon: Icons.picture_as_pdf,
|
||||
selected: postKind == PostKind.PDF,
|
||||
onTap: _pickPDFForPost,
|
||||
),
|
||||
|
||||
// Add countdown timer
|
||||
_PostOptionWidget(
|
||||
icon: Icons.timer,
|
||||
selected: postKind == PostKind.COUNTDOWN,
|
||||
onTap: _pickCountdownTime,
|
||||
),
|
||||
|
||||
Expanded(
|
||||
child: Container(),
|
||||
child: SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
_PostOptionWidget(
|
||||
icon: Icons.text_format,
|
||||
selected: postKind == PostKind.TEXT,
|
||||
onTap: _resetPostSelection),
|
||||
|
||||
// Include image button
|
||||
_PostOptionWidget(
|
||||
icon: Icons.image,
|
||||
selected: postKind == PostKind.IMAGE,
|
||||
onTap: _pickImageForPost,
|
||||
),
|
||||
|
||||
// Include PDF button
|
||||
_PostOptionWidget(
|
||||
icon: Icons.picture_as_pdf,
|
||||
selected: postKind == PostKind.PDF,
|
||||
onTap: _pickPDFForPost,
|
||||
),
|
||||
|
||||
// Add countdown timer
|
||||
_PostOptionWidget(
|
||||
icon: Icons.timer,
|
||||
selected: postKind == PostKind.COUNTDOWN,
|
||||
onTap: _pickCountdownTime,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Post visibility level
|
||||
|
Loading…
Reference in New Issue
Block a user