add const constructors
This commit is contained in:
@@ -284,7 +284,7 @@ class SelectProfileRoute extends GoRouteData with $SelectProfileRoute {
|
||||
|
||||
@override
|
||||
Page<void> buildPage(BuildContext context, GoRouterState state) {
|
||||
return DialogPage(builder: (_) => SelectProfileDialog());
|
||||
return DialogPage(builder: (_) => const SelectProfileDialog());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+6
-2
@@ -256,7 +256,7 @@ class BrowserTabBar extends HookConsumerWidget {
|
||||
Visibility(
|
||||
visible: displayQuickTabSwitcher,
|
||||
maintainState: true,
|
||||
child: QuickTabSwitcher(),
|
||||
child: const QuickTabSwitcher(),
|
||||
),
|
||||
if (showMainToolbar)
|
||||
Visibility(
|
||||
@@ -426,7 +426,7 @@ class ContextualToolbar extends HookConsumerWidget {
|
||||
NavigateForwardButton(selectedTabId: selectedTabId)
|
||||
else
|
||||
ShareMenuButton(selectedTabId: selectedTabId),
|
||||
AddTabButton(),
|
||||
const AddTabButton(),
|
||||
TabsCountButton(
|
||||
selectedTabId: selectedTabId,
|
||||
displayedSheet: displayedSheet,
|
||||
@@ -442,6 +442,8 @@ class ContextualToolbar extends HookConsumerWidget {
|
||||
}
|
||||
|
||||
class QuickTabSwitcher extends HookConsumerWidget {
|
||||
const QuickTabSwitcher();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final tabStates = ref.watch(fifoTabStatesProvider);
|
||||
@@ -962,6 +964,8 @@ class NavigateBackButton extends HookConsumerWidget {
|
||||
}
|
||||
|
||||
class AddTabButton extends HookConsumerWidget {
|
||||
const AddTabButton();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final tabMenuController = useMenuController();
|
||||
|
||||
@@ -25,6 +25,8 @@ import 'package:skeletonizer/skeletonizer.dart';
|
||||
import 'package:weblibre/features/geckoview/domain/providers/tab_state.dart';
|
||||
|
||||
class CertificateTile extends HookConsumerWidget {
|
||||
const CertificateTile();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final tabState = ref.watch(selectedTabStateProvider);
|
||||
|
||||
+1
-1
@@ -181,7 +181,7 @@ class ViewTabSheetWidget extends HookConsumerWidget {
|
||||
child: WebsiteTitleTile(initialTabState),
|
||||
),
|
||||
),
|
||||
CertificateTile(),
|
||||
const CertificateTile(),
|
||||
const Divider(),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -40,7 +40,7 @@ class StartProxyController extends _$StartProxyController {
|
||||
final result = await showDialog<bool>(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return TorDialog();
|
||||
return const TorDialog();
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ final class StartProxyControllerProvider
|
||||
}
|
||||
|
||||
String _$startProxyControllerHash() =>
|
||||
r'a04e6cffc7483d48a0f2cbc320b0cc45c2e16674';
|
||||
r'86a015a0c257ea18ad23aa28bdd43d289b6bfc64';
|
||||
|
||||
abstract class _$StartProxyController extends $Notifier<void> {
|
||||
void build();
|
||||
|
||||
@@ -23,6 +23,8 @@ import 'package:weblibre/core/design/app_colors.dart';
|
||||
import 'package:weblibre/presentation/icons/tor_icons.dart';
|
||||
|
||||
class TorDialog extends StatelessWidget {
|
||||
const TorDialog();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
|
||||
@@ -28,6 +28,8 @@ import 'package:weblibre/presentation/widgets/failure_widget.dart';
|
||||
import 'package:weblibre/utils/exit_app.dart';
|
||||
|
||||
class SelectProfileDialog extends HookConsumerWidget {
|
||||
const SelectProfileDialog();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final usersAsync = ref.watch(profileRepositoryProvider);
|
||||
|
||||
Reference in New Issue
Block a user