Skip to content

Commit

Permalink
optimize file property action buttons layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHeitmann committed Dec 1, 2024
1 parent 31fe8bd commit 857f744
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/widgets/FileHierarchyExplorer/fileMetaEditor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,13 @@ class _FileMetaEditorState extends ChangeNotifierState<FileMetaEditor> {
if (actions.isEmpty)
return [];
return [
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: actions.map((e) => Flexible(
child: TextButton.icon(
Align(
alignment: Alignment.center,
child: Wrap(
alignment: WrapAlignment.center,
spacing: 4,
runSpacing: 4,
children: actions.map((e) => TextButton.icon(
onPressed: e.action,
icon: Icon(e.icon, size: 20),
label: Text(e.name, overflow: TextOverflow.ellipsis),
Expand All @@ -135,8 +138,8 @@ class _FileMetaEditorState extends ChangeNotifierState<FileMetaEditor> {
),
),
)
),
)).toList(),
)).toList(),
),
),
const SizedBox(height: 16),
];
Expand Down

0 comments on commit 857f744

Please sign in to comment.