minor cleanup

This commit is contained in:
Stephan D
2026-01-16 12:08:52 +01:00
parent 67a9b72a3f
commit 4cd4bfe7be
33 changed files with 50 additions and 51 deletions

View File

@@ -126,7 +126,7 @@ RouteBase payoutShellRoute() => ShellRoute(
GoRoute(
name: PayoutRoutes.invitations,
path: PayoutRoutes.invitationsPath,
pageBuilder: (_, __) => const NoTransitionPage(
pageBuilder: (_, _) => const NoTransitionPage(
child: InvitationsPage(),
),
),
@@ -164,14 +164,14 @@ RouteBase payoutShellRoute() => ShellRoute(
GoRoute(
name: PayoutRoutes.settings,
path: PayoutRoutes.settingsPath,
pageBuilder: (_, __) => const NoTransitionPage(
pageBuilder: (_, _) => const NoTransitionPage(
child: ProfileSettingsPage(),
),
),
GoRoute(
name: PayoutRoutes.reports,
path: PayoutRoutes.reportsPath,
pageBuilder: (_, __) => const NoTransitionPage(
pageBuilder: (_, _) => const NoTransitionPage(
child: OperationHistoryPage(),
),
),

View File

@@ -17,12 +17,12 @@ GoRouter createRouter() => GoRouter(
GoRoute(
name: Pages.root.name,
path: routerPage(Pages.root),
builder: (_, __) => const LoginPage(),
builder: (_, _) => const LoginPage(),
),
GoRoute(
name: Pages.login.name,
path: routerPage(Pages.login),
builder: (_, __) => const LoginPage(),
builder: (_, _) => const LoginPage(),
),
GoRoute(
name: Pages.sfactor.name,
@@ -34,7 +34,7 @@ GoRouter createRouter() => GoRouter(
GoRoute(
name: Pages.signup.name,
path: routerPage(Pages.signup),
builder: (_, __) => const SignUpPage(),
builder: (_, _) => const SignUpPage(),
),
GoRoute(
name: Pages.verify.name,
@@ -45,5 +45,5 @@ GoRouter createRouter() => GoRouter(
),
payoutShellRoute(),
],
errorBuilder: (_, __) => const NotFoundPage(),
errorBuilder: (_, _) => const NotFoundPage(),
);

View File

@@ -11,7 +11,7 @@ class FeePayerSwitch extends StatelessWidget {
final double spacing;
final TextStyle? style;
const FeePayerSwitch({super.key, required this.spacing, TextStyle? this.style});
const FeePayerSwitch({super.key, required this.spacing, this.style});
@override
Widget build(BuildContext context) => Consumer<PaymentAmountProvider>(

View File

@@ -29,7 +29,7 @@ class InvitationListBody extends StatelessWidget {
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
itemCount: invitations.length,
separatorBuilder: (_, __) => const SizedBox(height: 10),
separatorBuilder: (_, _) => const SizedBox(height: 10),
itemBuilder: (_, index) => InvitationsCard(invitation: invitations[index]),
);
}

View File

@@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:pshared/models/invitation/invitation.dart';
import 'package:pshared/provider/invitations.dart';
import 'package:pweb/models/invitation_filter.dart';

View File

@@ -25,7 +25,7 @@ class PermissionsLoader extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Consumer2<PermissionsProvider, AccountProvider>(
builder: (context, provider, _accountProvider, _) {
builder: (context, provider, _, _) {
if (provider.error != null) {
final loc = AppLocalizations.of(context)!;
return Center(