Tour
This commit is contained in:
parent
956231048e
commit
606106e5ec
10 changed files with 632 additions and 1 deletions
15
lib/services/onboarding_keys.dart
Normal file
15
lib/services/onboarding_keys.dart
Normal 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');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue