Make header wrap but need to figure out long term solution for open external button

merge-requests/67/merge
Hank Grabowski 2022-12-29 01:04:21 -05:00
rodzic e001067f37
commit f8cb7cd440
1 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -35,9 +35,7 @@ class StatusHeaderControl extends StatelessWidget {
final reshareAuthor = getIt<ConnectionsManager>() final reshareAuthor = getIt<ConnectionsManager>()
.getById(entry.reshareAuthorId) .getById(entry.reshareAuthorId)
.getValueOrElse(() => Connection()); .getValueOrElse(() => Connection());
return Row( return Wrap(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
GestureDetector( GestureDetector(
onTap: () => goToProfile(context, author.id), onTap: () => goToProfile(context, author.id),
@ -59,6 +57,7 @@ class StatusHeaderControl extends StatelessWidget {
), ),
), ),
Row( Row(
mainAxisSize: MainAxisSize.min,
children: [ children: [
Text( Text(
ElapsedDateUtils.epochSecondsToString( ElapsedDateUtils.epochSecondsToString(
@ -99,7 +98,9 @@ class StatusHeaderControl extends StatelessWidget {
), ),
], ],
if (showOpenControl) ...[ if (showOpenControl) ...[
const Expanded(child: SizedBox()), SizedBox(
width: 20.0,
),
buildActionBar(context), buildActionBar(context),
], ],
], ],
@ -108,6 +109,7 @@ class StatusHeaderControl extends StatelessWidget {
Widget buildActionBar(BuildContext context) { Widget buildActionBar(BuildContext context) {
return Row( return Row(
mainAxisSize: MainAxisSize.min,
children: [ children: [
IconButton( IconButton(
onPressed: () async { onPressed: () async {