add refresh button to pending page
All checks were successful
Release / meta (push) Successful in 7s
Release / linux-build (push) Successful in 50s
Release / web-build (push) Successful in 2m23s
Release / android-build (push) Successful in 7m48s
Release / release-master (push) Successful in 18s
Release / release-dev (push) Successful in 20s
All checks were successful
Release / meta (push) Successful in 7s
Release / linux-build (push) Successful in 50s
Release / web-build (push) Successful in 2m23s
Release / android-build (push) Successful in 7m48s
Release / release-master (push) Successful in 18s
Release / release-dev (push) Successful in 20s
This commit is contained in:
@@ -21,6 +21,7 @@ import 'package:mileograph_flutter/components/pages/settings.dart';
|
||||
import 'package:mileograph_flutter/components/pages/stats.dart';
|
||||
import 'package:mileograph_flutter/components/pages/traction.dart';
|
||||
import 'package:mileograph_flutter/components/pages/traction/traction_pending_page.dart';
|
||||
import 'package:mileograph_flutter/components/pages/traction/traction_pending_changes_page.dart';
|
||||
import 'package:mileograph_flutter/components/pages/more/user_profile_page.dart';
|
||||
import 'package:mileograph_flutter/components/widgets/friend_request_notification_card.dart';
|
||||
import 'package:mileograph_flutter/components/widgets/leg_share_edit_notification_card.dart';
|
||||
@@ -221,6 +222,11 @@ class _MyAppState extends State<MyApp> {
|
||||
path: '/traction/pending',
|
||||
builder: (context, state) => const TractionPendingPage(),
|
||||
),
|
||||
GoRoute(
|
||||
path: '/traction/changes',
|
||||
builder: (context, state) =>
|
||||
const TractionPendingChangesPage(),
|
||||
),
|
||||
GoRoute(
|
||||
path: '/profile',
|
||||
builder: (context, state) => const ProfilePage(),
|
||||
@@ -238,7 +244,15 @@ class _MyAppState extends State<MyApp> {
|
||||
label = extra;
|
||||
}
|
||||
if (label.trim().isEmpty) label = 'Loco $locoId';
|
||||
return LocoTimelinePage(locoId: locoId, locoLabel: label);
|
||||
bool showPending = false;
|
||||
if (extra is Map && extra['showPending'] is bool) {
|
||||
showPending = extra['showPending'] as bool;
|
||||
}
|
||||
return LocoTimelinePage(
|
||||
locoId: locoId,
|
||||
locoLabel: label,
|
||||
forceShowPending: showPending,
|
||||
);
|
||||
},
|
||||
),
|
||||
GoRoute(
|
||||
|
||||
Reference in New Issue
Block a user