15 lines
851 B
Dart
15 lines
851 B
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 vehiclesAddButton = GlobalKey(debugLabel: 'onboarding-vehicles-add');
|
|
static final reportDateRange = GlobalKey(debugLabel: 'onboarding-report-date-range');
|
|
static final cloudStorageCard = GlobalKey(debugLabel: 'onboarding-cloud-storage-card');
|
|
}
|