22 lines
1.5 KiB
Dart
22 lines
1.5 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
/// One [GlobalKey] per on-screen element the first-launch guided tour
|
|
/// (`lib/widgets/onboarding_tour.dart`, orchestrated from
|
|
/// `lib/screens/main_shell.dart`) highlights. Each screen that owns one of
|
|
/// these elements assigns the matching key to the actual widget, so the
|
|
/// tour can find its on-screen position (via
|
|
/// `key.currentContext?.findRenderObject()`) without those screens knowing
|
|
/// anything about the tour itself.
|
|
class OnboardingKeys {
|
|
static final receiptsAddButton = GlobalKey(debugLabel: 'onboarding-receipts-add');
|
|
static final receiptsNavDestination = GlobalKey(debugLabel: 'onboarding-receipts-nav-destination');
|
|
static final vehiclesAddButton = GlobalKey(debugLabel: 'onboarding-vehicles-add');
|
|
static final vehiclesNavDestination = GlobalKey(debugLabel: 'onboarding-vehicles-nav-destination');
|
|
static final reportDateRange = GlobalKey(debugLabel: 'onboarding-report-date-range');
|
|
static final reportsNavDestination = GlobalKey(debugLabel: 'onboarding-reports-nav-destination');
|
|
static final reportShareAndPrintRow = GlobalKey(debugLabel: 'onboarding-report-share-print-row');
|
|
static final refundFormLink = GlobalKey(debugLabel: 'onboarding-refund-form-link');
|
|
static final settingsNavDestination = GlobalKey(debugLabel: 'onboarding-settings-nav-destination');
|
|
static final settingsDataMenuEntry = GlobalKey(debugLabel: 'onboarding-settings-data-menu-entry');
|
|
static final cloudStorageCard = GlobalKey(debugLabel: 'onboarding-cloud-storage-card');
|
|
}
|