const routes; drop universal_io
This commit is contained in:
@@ -138,7 +138,7 @@ class TabTreeDialog extends HookConsumerWidget {
|
||||
.requestDismiss();
|
||||
}
|
||||
|
||||
BrowserRoute().go(context);
|
||||
const BrowserRoute().go(context);
|
||||
},
|
||||
onBeforeDelete: () {
|
||||
if (graph.nodes.length <= 2) {
|
||||
|
||||
@@ -582,7 +582,7 @@ class _ViewUrlSheet extends HookConsumerWidget {
|
||||
.read(bottomSheetControllerProvider.notifier)
|
||||
.requestDismiss();
|
||||
} else {
|
||||
BrowserRoute().go(context);
|
||||
const BrowserRoute().go(context);
|
||||
}
|
||||
},
|
||||
initialHeight: initialHeight,
|
||||
|
||||
@@ -24,14 +24,14 @@ class TabViewScreen extends HookConsumerWidget {
|
||||
scrollController: scrollController,
|
||||
showNewTabFab: false,
|
||||
onClose: () {
|
||||
BrowserRoute().go(context);
|
||||
const BrowserRoute().go(context);
|
||||
},
|
||||
)
|
||||
: ViewTabsWidget(
|
||||
scrollController: scrollController,
|
||||
showNewTabFab: false,
|
||||
onClose: () {
|
||||
BrowserRoute().go(context);
|
||||
const BrowserRoute().go(context);
|
||||
},
|
||||
),
|
||||
),
|
||||
@@ -46,7 +46,7 @@ class TabViewScreen extends HookConsumerWidget {
|
||||
).push(context);
|
||||
|
||||
if (context.mounted) {
|
||||
BrowserRoute().go(context);
|
||||
const BrowserRoute().go(context);
|
||||
}
|
||||
},
|
||||
child: const Icon(Icons.add),
|
||||
|
||||
@@ -214,7 +214,7 @@ class TabMenu extends HookConsumerWidget {
|
||||
leadingIcon: const Icon(MdiIcons.folderArrowUpDownOutline),
|
||||
child: const Text('Assign container'),
|
||||
onPressed: () async {
|
||||
final targetContainerId = await ContainerSelectionRoute()
|
||||
final targetContainerId = await const ContainerSelectionRoute()
|
||||
.push<String?>(context);
|
||||
|
||||
if (targetContainerId != null) {
|
||||
@@ -237,7 +237,7 @@ class TabMenu extends HookConsumerWidget {
|
||||
leadingIcon: const Icon(MdiIcons.webPlus),
|
||||
child: const Text('Assign Site to Container'),
|
||||
onPressed: () async {
|
||||
final targetContainerId = await ContainerSelectionRoute()
|
||||
final targetContainerId = await const ContainerSelectionRoute()
|
||||
.push<String?>(context);
|
||||
|
||||
if (targetContainerId != null) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:fading_scroll/fading_scroll.dart';
|
||||
import 'package:fast_equatable/fast_equatable.dart';
|
||||
@@ -12,7 +14,7 @@ import 'package:nullability/nullability.dart';
|
||||
import 'package:path/path.dart' as p;
|
||||
import 'package:sliver_tools/sliver_tools.dart';
|
||||
import 'package:timeago/timeago.dart' as timeago;
|
||||
import 'package:universal_io/io.dart';
|
||||
|
||||
import 'package:weblibre/features/geckoview/domain/repositories/tab.dart';
|
||||
import 'package:weblibre/features/geckoview/features/browser/presentation/dialogs/delete_data.dart';
|
||||
import 'package:weblibre/features/geckoview/features/history/domain/entities/history_filter_options.dart';
|
||||
|
||||
@@ -119,7 +119,7 @@ class SearchScreen extends HookConsumerWidget {
|
||||
if (context.mounted) {
|
||||
ref.read(bottomSheetControllerProvider.notifier).requestDismiss();
|
||||
|
||||
BrowserRoute().go(context);
|
||||
const BrowserRoute().go(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -233,7 +233,7 @@ class SearchScreen extends HookConsumerWidget {
|
||||
.read(bottomSheetControllerProvider.notifier)
|
||||
.requestDismiss();
|
||||
|
||||
BrowserRoute().go(context);
|
||||
const BrowserRoute().go(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -129,7 +129,7 @@ class HistorySuggestions extends HookConsumerWidget {
|
||||
)
|
||||
.requestDismiss();
|
||||
|
||||
BrowserRoute().go(context);
|
||||
const BrowserRoute().go(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -175,7 +175,7 @@ class TabSearch extends HookConsumerWidget {
|
||||
.read(bottomSheetControllerProvider.notifier)
|
||||
.requestDismiss();
|
||||
|
||||
BrowserRoute().go(context);
|
||||
const BrowserRoute().go(context);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@@ -345,6 +345,7 @@ class ContainerEditScreen extends HookConsumerWidget {
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return AlertDialog(
|
||||
icon: const Icon(Icons.warning),
|
||||
title: const Text('Delete Container'),
|
||||
content: const Text(
|
||||
'Are you sure you want to delete this container and close all attached tabs?',
|
||||
|
||||
@@ -171,7 +171,9 @@ class ContainerChips extends HookConsumerWidget {
|
||||
label: Text(data!.length.toString()),
|
||||
showCheckmark: false,
|
||||
onSelected: (_) async {
|
||||
await ContainerDraftRoute().push(context);
|
||||
await const ContainerDraftRoute().push(
|
||||
context,
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
@@ -206,7 +208,7 @@ class ContainerChips extends HookConsumerWidget {
|
||||
IconButton(
|
||||
visualDensity: VisualDensity.compact,
|
||||
onPressed: () async {
|
||||
await ContainerListRoute().push(context);
|
||||
await const ContainerListRoute().push(context);
|
||||
},
|
||||
icon: const Icon(Icons.chevron_right),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user