Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/features/extensions/extension_table_toolbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class ExtensionTableToolbar extends material.StatelessWidget {
this.onNavigateHome,
this.onRestartDriver,
this.isRestarting = false,
this.editAction,
});

final String title;
Expand All @@ -47,6 +48,9 @@ class ExtensionTableToolbar extends material.StatelessWidget {
final VoidCallback? onRestartDriver;
final bool isRestarting;

/// View / edit mode toggle ([TableEditModeButton]).
final material.Widget? editAction;

@override
material.Widget build(material.BuildContext context) {
final cs = Theme.of(context).colorScheme;
Expand Down Expand Up @@ -125,6 +129,10 @@ class ExtensionTableToolbar extends material.StatelessWidget {
),
),
const Gap(6),
if (editAction != null) ...[
editAction!,
const Gap(4),
],
OutlineButton(
size: ButtonSize.small,
onPressed: onOpenDdl,
Expand Down
Loading
Loading