add file_transfer confirm close

This commit is contained in:
csf
2022-09-08 21:03:20 +08:00
parent 63cb816b7d
commit 30156c694b
3 changed files with 27 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ class TabInfo {
final String label;
final IconData? selectedIcon;
final IconData? unselectedIcon;
final bool closable; //
final bool closable;
final VoidCallback? onTabCloseButton;
final Widget page;
@@ -147,7 +147,6 @@ class DesktopTabController {
void closeBy(String? key) {
if (!isDesktop) return;
debugPrint("closeBy: $key");
assert(onRemove != null);
if (key == null) {
if (state.value.selected < state.value.tabs.length) {