This commit is contained in:
Courtney Arnold 2026-08-15 19:23:03 -05:00
parent 956231048e
commit 606106e5ec
10 changed files with 632 additions and 1 deletions

View file

@ -0,0 +1,15 @@
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 vehiclesAddButton = GlobalKey(debugLabel: 'onboarding-vehicles-add');
static final reportDateRange = GlobalKey(debugLabel: 'onboarding-report-date-range');
static final cloudStorageCard = GlobalKey(debugLabel: 'onboarding-cloud-storage-card');
}