### Run the example app Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Run the example app from the example directory. The tour starts automatically after the first frame. ```bash cd example flutter run ``` -------------------------------- ### Run the example app Source: https://github.com/anonimeact/introduce-me/blob/main/example/README.md Commands to run the example app. The onboarding tour starts automatically on launch. ```bash cd example flutter pub get flutter run ``` -------------------------------- ### Start tour with IntroduceMeScope.of(context).start Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Start the tour with the given tourId. No GlobalKey list is required because steps register themselves via id, order, and tourId. ```dart IntroduceMeScope.of(context).start('onboarding'); ``` -------------------------------- ### Example app file layout Source: https://github.com/anonimeact/introduce-me/blob/main/README.md File layout of the example app, showing the main files and their responsibilities. ```text example/lib/ ├── main.dart # Scope, analytics, shell, FAB, nav ├── example_storage.dart # Shared MemoryTourStorage ├── example_app_state.dart # Theme mode + global look notifiers └── screens/ ├── home_screen.dart # Tooltip, multi, blur, gestures, scroll ├── profile_screen.dart# Manual Showcase + withWidget └── settings_screen.dart # Cross-screen + isTargetRendered + TourBuilder ``` -------------------------------- ### Install dependencies with flutter pub get Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Install the package dependencies after adding introduceme to pubspec.yaml. ```bash flutter pub get ``` -------------------------------- ### IntroduceMeScope Controls Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Methods and properties of the IntroduceMeScope object used to control the tour: starting, navigating, skipping, dismissing, enabling/disabling, and inspecting state. ```APIDOC ## scope.start('onboarding') ### Description Starts the tour with the given ID. Optionally can force start and skip persistence check. ### Method Dart async method ### Parameters - **tourId** (String) - Required - The identifier of the tour to start - **force** (bool) - Optional - If true, ignore `enableShowcase == false` - **skipPersistenceCheck** (bool) - Optional - If true, show even if already completed ### Request Example ```dart await scope.start('onboarding', force: true, skipPersistenceCheck: true); ``` ### Response No return value (void) ## scope.next() ### Description Advances to the next step in the current tour. ### Method Dart async method ### Parameters None ### Response No return value (void) ## scope.previous() ### Description Moves to the previous step in the current tour. ### Method Dart async method ### Parameters None ### Response No return value (void) ## scope.skip() ### Description Abandons the tour without marking it as completed. ### Method Dart async method ### Parameters None ### Response No return value (void) ## scope.dismiss() ### Description Closes the overlay and abandons the tour. ### Method Dart async method ### Parameters None ### Response No return value (void) ## scope.setEnabled(false) ### Description Globally disables all showcases. ### Method Dart synchronous method ### Parameters - **enabled** (bool) - Required - Set to false to disable ### Response No return value (void) ## scope.isActive ### Description Indicates whether a tour is currently active. ### Method Dart getter ### Parameters None ### Response - **value** (bool) - Whether a tour is active Example: ```dart final bool active = scope.isActive; ``` ## scope.activeTourId ### Description Gets the identifier of the currently active tour. ### Method Dart getter ### Parameters None ### Response - **value** (String?) - The ID of the active tour, or null if none Example: ```dart final String? tourId = scope.activeTourId; ``` ## scope.isTargetRendered() ### Description Checks whether a specific tour target is rendered. With no argument, checks the primary target. ### Method Dart synchronous method ### Parameters - **targetId** (String?) - Optional - The id of the target to check; if omitted, uses the primary target ### Response - **bool** - Whether the target is rendered Example: ```dart final bool rendered = scope.isTargetRendered(); final bool byId = scope.isTargetRendered('fab-add'); ``` ``` -------------------------------- ### Start tour with force and skipPersistenceCheck options Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Starts the tour with optional flags: force ignores the enableShowcase == false setting, and skipPersistenceCheck shows the tour even if it was already completed. ```dart await scope.start( 'onboarding', force: true, // ignore enableShowcase == false skipPersistenceCheck: true, // show even if already completed ); ``` -------------------------------- ### Typical first-run pattern with addPostFrameCallback Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Typical first-run pattern: schedules the tour start after the first frame is rendered using WidgetsBinding.instance.addPostFrameCallback. ```dart WidgetsBinding.instance.addPostFrameCallback((_) { IntroduceMeScope.of(context).start('onboarding'); }); ``` -------------------------------- ### Control the tour with IntroduceMeScope Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Shows how to obtain the IntroduceMeScope and control the tour programmatically: start, advance, go back, skip (abandons without marking completed), dismiss (closes overlay/abandons), and globally disable showcases. Also exposes state getters for active status, active tour ID, and whether a target is rendered (optionally by a specific id). ```dart final scope = IntroduceMeScope.of(context); await scope.start('onboarding'); await scope.next(); await scope.previous(); await scope.skip(); // abandons the tour (does not mark completed) await scope.dismiss(); // closes overlay / abandons scope.setEnabled(false); // globally disable showcases final active = scope.isActive; final tourId = scope.activeTourId; final rendered = scope.isTargetRendered(); // primary target final byId = scope.isTargetRendered('fab-add'); // specific id ``` -------------------------------- ### Define a tour with the fluent Tour Builder API Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Use the optional fluent Tour Builder API to declaratively define tours, especially with GlobalKeys. Chain steps with titles and descriptions, optionally persist with SharedPrefsTourStorage, then start with the context. For most apps, Showcase.auto plus start(tourId) is simpler. ```dart final menuKey = GlobalKey(); final profileKey = GlobalKey(); await tour('onboarding') .step(key: menuKey, title: 'Menu', description: 'Open the drawer') .step(key: profileKey, title: 'Profile', description: 'Your account') .persist(storage: SharedPrefsTourStorage()) .start(context); ``` -------------------------------- ### Use named scopes with IntroduceMeScopeWidget Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Use named scopes to access tours without a BuildContext or to manage multiple independent tours. Retrieve the scope by name with IntroduceMeScope.getNamed and call start or isTargetRendered. Prefer IntroduceMeScope.of(context) inside the widget tree when possible. ```dart IntroduceMeScopeWidget( scopeName: 'main', child: ..., ) // Anywhere later: IntroduceMeScope.getNamed('main')?.start('onboarding'); IntroduceMeScope.getNamed('main')?.isTargetRendered('fab-add'); ``` -------------------------------- ### Override onDetermineNextStep via IntroduceMeScope Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Override onDetermineNextStep at runtime through the IntroduceMeScope handle. This example jumps to 'step_wrap_up' when the current step is 'step_has_pets' and the user has no pets; otherwise returns null for normal flow. ```dart final scope = IntroduceMeScope.of(context); scope.onDetermineNextStep = (currentStep, currentIndex, steps) { if (currentStep?.config.id == 'step_has_pets' && !userHasPets) { return steps.indexWhere((s) => s.config.id == 'step_wrap_up'); } return null; }; ``` -------------------------------- ### Resilience & accessibility: Scope-level and per-step settings Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Shows scope-level settings for semantics, auto-scroll, skip-if-target-not-present, and missing-target timeout, plus a per-step example with enableAutoScroll: false and scrollAlignment. Note: enableSemantics: false disables Semantics on the hit area and default tooltip; with enableAutoScroll: false the tour waits in waitingForTarget until the target is visible; skipIfTargetNotPresent pairs with TourAnalytics.onStepSkipped. ```dart IntroduceMeScopeWidget( enableSemantics: true, // default — screen reader labels enableAutoScroll: true, // default — scroll off-screen targets into view skipIfTargetNotPresent: false, // when true, skip steps whose target never appears missingTargetTimeout: const Duration(seconds: 3), child: ..., ) Showcase.auto( id: 'manual-scroll', tourId: 'onboarding', order: 1, title: 'Scroll me into view', enableAutoScroll: false, // per-step opt-out scrollAlignment: 1.0, // only applies when auto-scroll runs child: ..., ) ``` -------------------------------- ### Set onDetermineNextStep on IntroduceMeScopeWidget Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Set onDetermineNextStep on IntroduceMeScopeWidget to customize tour advancement. The callback receives currentStep, currentIndex, and steps; return an index to jump to that step or null for normal in-order flow. This example skips the 'step_profile' step for guests and jumps to 'step_sign_up'. ```dart IntroduceMeScopeWidget( onDetermineNextStep: (currentStep, currentIndex, steps) { // Example: skip the "manage account" step for guests, going straight // to "sign up" instead. Any other step runs normally. if (currentStep?.config.id == 'step_profile' && !userIsLoggedIn) { final target = steps.indexWhere((s) => s.config.id == 'step_sign_up'); return target >= 0 ? target : null; } return null; // normal, in-order flow }, child: ..., ) ``` -------------------------------- ### Tour flow sequence Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Flow of a tour from start to completion, showing the sequence of actions: resolving steps, scrolling, showing overlay and tooltip, and handling user actions. ```text start(tourId) → resolve steps by order → scroll if needed (waitingForTarget) → show overlay + tooltip → next / skip / dismiss / complete ``` -------------------------------- ### Position action buttons outside tooltip with TooltipActionPosition.outside Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Places action buttons outside the tooltip card using `TooltipActionPosition.outside`. The example shows a Previous button hidden on the first step via `hideWhen` and a filled Next button with custom background color. Note: `tooltipActions: null` gives default Skip/Continue, `tooltipActions: []` removes footer buttons, and body tap still advances unless you rely only on buttons. ```dart tooltipActionConfig: const TooltipActionConfig( position: TooltipActionPosition.outside, alignment: MainAxisAlignment.spaceBetween, ), tooltipActions: [ TooltipActionButton( label: 'Previous', type: TooltipActionType.custom, hideWhen: (c) => c.isFirst, ), const TooltipActionButton( label: 'Next', type: TooltipActionType.next, filled: true, backgroundColor: Color(0xFF7C4DFF), ), ], ``` -------------------------------- ### Showcase.auto Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Documentation for Showcase.auto constructor and IntroduceMeScopeWidget for the Introduce Me package. ```APIDOC ## [CONSTRUCTOR] Showcase.auto() ### Description Instantiates a showcase step with gesture callbacks for the Introduce Me Flutter package. It configures the tour step with callbacks for lifecycle events and interactions. ### Constructor `Showcase.auto(...)` ### Parameters #### Required Parameters - **id** (String) - Required - Unique identifier for the showcase. - **title** (String) - Required - Title displayed in the tooltip. - **description** (String) - Required - Description displayed in the tooltip. - **child** (Widget) - Required - The widget to be highlighted. #### Optional Parameters - **tourId** (String) - Optional - Identifier of the tour this step belongs to. - **order** (int) - Optional - Order of the step in the tour. - **onStart** (VoidCallback) - Optional - Called when the step is activated. - **onComplete** (VoidCallback) - Optional - Called when the step is deactivated. - **onTargetClick** (VoidCallback) - Optional - Called when the target is tapped; also advances the tour unless `disposeOnTap` is true. - **onTargetDoubleTap** (VoidCallback) - Optional - Called when the target is double-tapped. - **onTargetLongPress** (VoidCallback) - Optional - Called when the target is long-pressed. - **onToolTipClick** (VoidCallback) - Optional - Called when the tooltip body is tapped; advances the tour. - **onBarrierClick** (VoidCallback) - Optional - Called when the barrier is tapped; then the tour dismisses. - **onTargetRectUpdate** (ValueChanged) - Optional - Called when the target's rectangle changes; throttled to ~16ms. - **disposeOnTap** (bool) - Optional - When true, tapping the target does not advance the tour. - **disableDefaultTargetGestures** (bool) - Optional - When true, disables default target gestures. - **disableBarrierInteraction** (bool) - Optional - When true, disables barrier interaction. ### Example ```dart Showcase.auto( id: 'gestures', tourId: 'onboarding', order: 1, title: 'Gestures', description: 'Wire product analytics or side effects.', onStart: () => debugPrint('step started'), onComplete: () => debugPrint('step completed'), onTargetClick: () => debugPrint('target tapped'), onTargetDoubleTap: () => debugPrint('double tap'), onTargetLongPress: () => debugPrint('long press'), onToolTipClick: () => debugPrint('tooltip body tapped'), onBarrierClick: () => debugPrint('barrier tapped'), onTargetRectUpdate: (rect) => debugPrint('rect=$rect'), disposeOnTap: false, disableDefaultTargetGestures: false, disableBarrierInteraction: false, child: const Icon(Icons.ads_click), ) ``` ### Callback Behavior - **onStart / onComplete**: Fired on step activation / deactivation. - **onTargetClick**: Fired on target tap; also advances unless `disposeOnTap`. If next step is on another route, navigation runs first and tour waits for route to mount. - **onTargetDoubleTap / onTargetLongPress**: Extra gestures; no auto-advance. - **onToolTipClick**: Fired on tooltip body tap; advances. - **onBarrierClick**: Fired on barrier tap; then tour dismisses. - **onTargetRectUpdate**: Fired when target rect changes; throttled ~16ms. - **Scope onFinish**: Fired when tour completes successfully. - **Scope onDismiss**: Fired when tour ends early; reason is `TourDismissReason.skipped`, `.barrierTap`, `.disabledScope`, or `.programmatic`. Not fired on normal completion. ``` -------------------------------- ### IntroduceMeScopeWidget Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Documentation for IntroduceMeScopeWidget for the Introduce Me package. ```APIDOC ## [CONSTRUCTOR] IntroduceMeScopeWidget() ### Description Wraps a widget to handle tour-level dismiss events for the Introduce Me package. Provides callbacks for when a tour ends early. ### Constructor `IntroduceMeScopeWidget(...)` ### Parameters #### Required Parameters - **child** (Widget) - Required - The child widget to wrap. #### Optional Parameters - **onDismiss** (void Function(String tourId, TourDismissReason reason)) - Optional - Called when a tour ends early; receives the tour identifier and dismiss reason. ### Example ```dart IntroduceMeScopeWidget( onDismiss: (tourId, reason) => debugPrint('Dismissed $tourId: $reason'), child: ... ) ``` ### Callback Behavior - **onDismiss**: Fired when the tour ends early with a reason of `skipped`, `barrierTap`, `disabledScope`, or `programmatic`. Not fired on normal completion. ``` -------------------------------- ### Set up cross-screen tour with IntroduceMeScopeWidget and navigatorObserver Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Wrap the Navigator with IntroduceMeScopeWidget and register the navigatorObserver on Navigator.observers so the tour overlay stays on top of pushed routes and resumes after push/pop. Use explicit order values and navigate from the prior step via onTargetClick. ```dart home: IntroduceMeScopeWidget( scopeName: 'main', routeSettleDelay: const Duration(milliseconds: 200), child: Builder( builder: (context) { final tourObserver = IntroduceMeScope.of(context).navigatorObserver; return Navigator( observers: [tourObserver], initialRoute: '/', onGenerateRoute: (settings) { switch (settings.name) { case '/settings': return MaterialPageRoute( settings: settings, builder: (_) => const SettingsScreen(), // Showcase.auto inside ); default: return MaterialPageRoute( settings: settings, builder: (_) => const MainShell(), // previous steps ); } }, ); }, ), ), ``` -------------------------------- ### Configure tour storage with IntroduceMeScopeWidget Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Configure persistence for the tour system. Use SharedPrefsTourStorage for production and MemoryTourStorage for tests or demos. The storage is passed to IntroduceMeScopeWidget. ```dart IntroduceMeScopeWidget( storage: SharedPrefsTourStorage(), // production // storage: MemoryTourStorage(), // tests / demos child: ..., ) ``` -------------------------------- ### Wrap app with IntroduceMeScopeWidget Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Wrap your app with IntroduceMeScopeWidget, providing a scope name and storage. Use SharedPrefsTourStorage for persistence or MemoryTourStorage for tests. ```dart void main() { runApp( MaterialApp( home: IntroduceMeScopeWidget( scopeName: 'main', storage: SharedPrefsTourStorage(), // or MemoryTourStorage() for tests child: const HomePage(), ), ), ); } ``` -------------------------------- ### Import introduceme package Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Import the introduceme package to use its APIs in your Dart code. ```dart import 'package:introduceme/introduceme.dart'; ``` -------------------------------- ### Apply look presets with IntroduceMeTheme and Showcase.auto Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Use look presets to style tooltip card, action buttons, and target highlight ring. Set a global default via IntroduceMeTheme(look: ...) or per step with Showcase.auto(look: ...). Precedence: explicit field → look preset → IntroduceMeTheme field → built-in default. ```dart ThemeData( extensions: const [ IntroduceMeTheme(look: ShowcaseLook.glass, enableGlassEffect: true), ], ) Showcase.auto( look: ShowcaseLook.neoBrutalism, // overrides global look for this step ..., ) ``` -------------------------------- ### Configure Showcase.auto with gesture callbacks Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Configures a Showcase step with gesture callbacks for analytics or side effects. Note that onTargetClick advances unless disposeOnTap is true, onBarrierClick dismisses the tour, and onTargetRectUpdate is throttled to ~16ms. ```dart Showcase.auto( id: 'gestures', tourId: 'onboarding', order: 1, title: 'Gestures', description: 'Wire product analytics or side effects.', onStart: () => debugPrint('step started'), onComplete: () => debugPrint('step completed'), onTargetClick: () => debugPrint('target tapped'), onTargetDoubleTap: () => debugPrint('double tap'), onTargetLongPress: () => debugPrint('long press'), onToolTipClick: () => debugPrint('tooltip body tapped'), onBarrierClick: () => debugPrint('barrier tapped'), // then dismisses onTargetRectUpdate: (rect) => debugPrint('rect=$rect'), // throttled disposeOnTap: false, disableDefaultTargetGestures: false, disableBarrierInteraction: false, child: const Icon(Icons.ads_click), ) ``` -------------------------------- ### Add introduceme dependency Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Add the introduceme package to your Flutter project's pubspec.yaml file. ```yaml dependencies: introduceme: ^1.0.0 ``` -------------------------------- ### One-line introduceMe extension Source: https://github.com/anonimeact/introduce-me/blob/main/README.md One-line extension for tagging a widget. Use for simple cases; prefer Showcase.auto for advanced options like actions, blur, and groupId. ```dart Icon(Icons.search).introduceMe( id: 'search', tourId: 'onboarding', order: 2, title: 'Search', description: 'Find anything instantly.', auto: true, ) ``` -------------------------------- ### Set tooltip placement and arrow with Showcase.auto Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Configures tooltip placement and arrow visibility. Use `tooltipPlacement` with values auto, above, below, left, or right; `TooltipPlacement.auto` picks the side with the most free space. `showArrow` toggles the arrow and `targetTooltipGap` sets the gap between target and tooltip. ```dart Showcase.auto( id: 'side', tourId: 'onboarding', order: 3, title: 'Side tip', description: 'Tooltip can sit left or right of the target.', showArrow: true, tooltipPlacement: TooltipPlacement.left, // auto | above | below | left | right targetTooltipGap: 8, child: const Icon(Icons.info_outline), ) ``` -------------------------------- ### Handle tour dismissal with IntroduceMeScopeWidget Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Wraps the app with IntroduceMeScopeWidget to handle tour dismissal. The onDismiss callback receives the tour ID and a TourDismissReason (skipped, barrierTap, disabledScope, or programmatic) and is not fired on normal completion. ```dart IntroduceMeScopeWidget( onDismiss: (tourId, reason) => debugPrint('Dismissed $tourId: $reason'), child: ..., ) ``` -------------------------------- ### Set global theme defaults with IntroduceMeTheme Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Set global theme defaults for the tour UI via ThemeExtension. Per-step props override these values when set. ```dart ThemeData( useMaterial3: true, extensions: const [ IntroduceMeTheme( barrierColor: Color(0xB3000000), overlayOpacity: 1.0, blurValue: 0, tooltipBackgroundColor: Color(0xFF1E1E2E), textColor: Colors.white, tooltipBorderRadius: BorderRadius.all(Radius.circular(12)), tooltipPadding: EdgeInsets.all(16), toolTipMargin: EdgeInsets.all(14), targetTooltipGap: 12, targetPadding: EdgeInsets.zero, showArrow: true, enableGlassEffect: false, glassBlurSigma: 12, ), ], ) ``` -------------------------------- ### Create cross-screen step with onTargetClick navigation Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Define the step before the cross-screen target. Use onTargetClick to push the next route; tapping advances the tour and runs navigation. The tour waits for Navigator.didPush, refreshes the step list, then advances to the next order. ```dart Showcase.auto( id: 'settings-action', tourId: 'onboarding', order: 4, title: 'Settings', description: 'Next step is on another route.', onTargetClick: () => Navigator.pushNamed(context, '/settings'), child: IconButton( icon: const Icon(Icons.settings_outlined), onPressed: () => Navigator.pushNamed(context, '/settings'), ), ), ``` -------------------------------- ### Showcase manual tagging Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Manual tagging when you already manage keys or pass a full ShowcaseStepConfig. Same styling API as Showcase.auto. ```dart Showcase( id: 'avatar', tourId: 'onboarding', order: 6, title: 'Your Avatar', description: 'Tap to change your profile picture.', targetShapeBorder: const CircleBorder(), child: const CircleAvatar(radius: 48, child: Icon(Icons.person)), ) ``` -------------------------------- ### Style tooltip colors and text with Showcase.auto Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Customizes tooltip colors, padding, and text styles. Use `tooltipBackgroundColor`, `tooltipBorderRadius`, `tooltipPadding`, `titleTextStyle`, `descTextStyle`, and padding properties to control appearance. ```dart Showcase.auto( id: 'styled', tourId: 'onboarding', order: 1, title: 'Styled', description: 'Colors, padding, and text styles.', textColor: Colors.white, tooltipBackgroundColor: const Color(0xFF1E1E2E), tooltipBorderRadius: BorderRadius.circular(16), tooltipPadding: const EdgeInsets.all(20), titleTextStyle: const TextStyle(fontSize: 18, fontWeight: FontWeight.w700), descTextStyle: const TextStyle(fontSize: 14, color: Colors.white70), titlePadding: const EdgeInsets.only(bottom: 4), descriptionPadding: const EdgeInsets.only(bottom: 8), child: const Text('Target'), ) ``` -------------------------------- ### Replay tour from pushed screen using named scope Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Replay a tour from a pushed screen without a scope ancestor. Use IntroduceMeScope.getNamed(scopeName) as a fallback when no IntroduceMeScopeInherited ancestor exists. Reset the tour first with storage.resetTour. ```dart await storage.resetTour('onboarding'); IntroduceMeScope.getNamed('main')?.start( 'onboarding', skipPersistenceCheck: true, force: true, ); ``` -------------------------------- ### Configure custom action buttons with tooltipActions Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Overrides the default footer (Skip + Continue/OK) with custom action buttons. Use `tooltipActionConfig` for layout and `tooltipActions` with `TooltipActionButton` entries. `TooltipActionType` values: next (advance), skip (abandon tour), dismiss (dismiss overlay), custom (only runs onTap). `TooltipActionButton` fields include `backgroundColor`, `textColor`, `textStyle`, `borderRadius`, `padding`, and `hideWhen` (a `bool Function(TooltipController)`). ```dart Showcase.auto( id: 'actions', tourId: 'onboarding', order: 1, title: 'Custom actions', description: 'Configure footer buttons without Showcase.withWidget.', tooltipActionConfig: const TooltipActionConfig( alignment: MainAxisAlignment.end, axis: Axis.horizontal, gap: 8, ), tooltipActions: const [ TooltipActionButton(label: 'Skip tour', type: TooltipActionType.skip), TooltipActionButton( label: 'Next', type: TooltipActionType.next, filled: true, ), ], child: const Icon(Icons.touch_app), ) ``` -------------------------------- ### Multi-Showcase: Grouped targets with primary tooltip Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Shows two Showcase.auto widgets sharing the same tourId, order, and groupId to form one tour step. Only the primary target (isPrimary: true) displays the tooltip; secondary targets are holes only. Soft cap is 8 targets per group; groupId: null creates a normal single-target step. ```dart Row( children: [ Showcase.auto( id: 'chip-a', tourId: 'onboarding', order: 3, groupId: 'filters', isPrimary: true, title: 'Filters', description: 'Both chips are highlighted; tooltip anchors to primary.', tooltipPlacement: TooltipPlacement.right, child: const Chip(label: Text('A')), ), Showcase.auto( id: 'chip-b', tourId: 'onboarding', order: 3, groupId: 'filters', isPrimary: false, child: const Chip(label: Text('B')), ), ], ) ``` -------------------------------- ### Implement custom TourStorage Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Implement a custom TourStorage to control persistence. Must override isTourCompleted, markTourCompleted, and resetTour. Use for custom storage backends. ```dart class MyTourStorage implements TourStorage { @override Future isTourCompleted(String tourId) async => ...; @override Future markTourCompleted(String tourId) async => ...; @override Future resetTour(String tourId) async => ...; } ``` -------------------------------- ### Add analytics callbacks with TourAnalytics Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Attach analytics callbacks to track onboarding funnels. Provides per-step and tour-level events for drop-off, completion rate, and time-to-finish. ```dart IntroduceMeScopeWidget( analytics: TourAnalytics( onStepShown: (tourId, stepId, duration) { /* log */ }, onStepSkipped: (tourId, stepId) { /* log */ }, onStepCompleted: (tourId, stepId, duration) { /* log */ }, onTourAbandoned: (tourId, done, total) { /* log */ }, onTourFinished: (tourId, duration) { /* log */ }, ), child: ..., ) ``` -------------------------------- ### Glass tooltip: Enable glass effect Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Enables the glass tooltip effect on a Showcase.auto step with a blur sigma of 16. ```dart Showcase.auto( ..., enableGlassEffect: true, glassBlurSigma: 16, ) ``` -------------------------------- ### Showcase.withWidget custom tooltip Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Fully custom tooltip via a container builder. TooltipController exposes onNext, onSkip, onDismiss, onPrevious, stepIndex, totalSteps, isLast, and isFirst. ```dart Showcase.withWidget( id: 'premium', tourId: 'onboarding', order: 7, container: (context, controller) { return Material( borderRadius: BorderRadius.circular(16), child: Padding( padding: const EdgeInsets.all(20), child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [ const Text('Custom Tooltip', style: TextStyle(fontWeight: FontWeight.bold)), const SizedBox(height: 8), const Text('Full control over layout and branding.'), const SizedBox(height: 16), Align( alignment: Alignment.centerRight, child: FilledButton( onPressed: controller.onNext, child: Text(controller.isLast ? 'Done' : 'Next'), ), ), ], ), ), ); }, child: const ListTile( leading: Icon(Icons.workspace_premium), title: Text('Premium'), ), ) ``` -------------------------------- ### Barrier: Scope-level and per-step overlay settings Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Shows how to set the barrier color at the scope level and override overlay opacity and blur per step. blurValue defaults to 0 (off) and is capped at 16. ```dart IntroduceMeScopeWidget( barrierColor: const Color(0xB3000000), child: ..., ) // Or per step / theme: Showcase.auto( ..., overlayOpacity: 0.85, blurValue: 8, // 0 = off (default), capped at 16 ) ``` -------------------------------- ### Tag target with Showcase.auto Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Tag a widget as a showcase target using Showcase.auto with a unique id, tourId, and order. The widget is automatically discovered for the tour. ```dart Showcase.auto( id: 'menu-button', tourId: 'onboarding', order: 1, title: 'Menu', description: 'Access all features from here.', child: IconButton( icon: const Icon(Icons.menu), onPressed: () {}, ), ) ``` -------------------------------- ### Configure routeSettleDelay for cross-screen tours Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Configure routeSettleDelay to wait an extra beat after route push/pop animations before measuring target rects. Default is 120ms; increase to 200-400ms if tooltips appear offset, or lower to 80ms or Duration.zero if sluggish. ```dart IntroduceMeScopeWidget( routeSettleDelay: const Duration(milliseconds: 200), // default: 120ms child: ..., ) ``` -------------------------------- ### Floating action & scroll loading: Scope-level configuration Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Configures a floating action widget (skip button), a scroll loading indicator, and a route settle delay at the scope level. Per-step overrides are available via floatingActionWidget and scrollLoadingWidget on Showcase. ```dart IntroduceMeScopeWidget( floatingActionWidget: TextButton( onPressed: () => IntroduceMeScope.of(context).skip(), child: const Text('Skip tour'), ), scrollLoadingWidget: const CircularProgressIndicator(), routeSettleDelay: const Duration(milliseconds: 200), // cross-screen layout settle child: ..., ) ``` -------------------------------- ### Showcase.auto for self-registering targets Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Recommended way to tag a target widget. Self-registers when mounted. Requires id, tourId, order, and child. Optional overrides include enableSemantics, enableAutoScroll, skipIfTargetNotPresent, look, and styling fields. ```dart Showcase.auto( id: 'fab-add', tourId: 'onboarding', order: 2, title: 'Quick Add', description: 'Create something new instantly.', targetShapeBorder: const CircleBorder(), showArrow: true, tooltipPlacement: TooltipPlacement.above, child: FloatingActionButton( onPressed: () {}, child: const Icon(Icons.add), ), ) ``` -------------------------------- ### Auto-play: Global and per-step delays Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Sets auto-play delay at the scope level (global) and per-step override on Showcase.auto. ```dart IntroduceMeScopeWidget( autoPlayDelay: const Duration(seconds: 3), // global child: ..., ) Showcase.auto( ..., autoPlayDelay: const Duration(seconds: 2), // per-step override ) ``` -------------------------------- ### Define Windows runner executable target Source: https://github.com/anonimeact/introduce-me/blob/main/example/windows/runner/CMakeLists.txt Defines the executable target for the Windows runner using the BINARY_NAME variable. Includes the necessary source files and the generated plugin registrant. The target name must be changed via BINARY_NAME in the top-level CMakeLists.txt, not here, to keep 'flutter run' working. ```cmake cmake_minimum_required(VERSION 3.14) project(runner LANGUAGES CXX) # Define the application target. To change its name, change BINARY_NAME in the # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer # work. # # Any new source files that you add to the application should be added here. add_executable(${BINARY_NAME} WIN32 "flutter_window.cpp" "main.cpp" "utils.cpp" "win32_window.cpp" "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" "Runner.rc" "runner.exe.manifest" ) # Apply the standard set of build settings. This can be removed for applications # that need different build settings. apply_standard_settings(${BINARY_NAME}) # Add preprocessor definitions for the build version. target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") # Disable Windows macros that collide with C++ standard library functions. target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") # Add dependency libraries and include directories. Add any application-specific # dependencies here. target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") # Run the Flutter tool portions of the build. This must not be removed. add_dependencies(${BINARY_NAME} flutter_assemble) ``` -------------------------------- ### Configure Flutter Linux runner target with CMake Source: https://github.com/anonimeact/introduce-me/blob/main/example/linux/runner/CMakeLists.txt Defines the runner executable for a Flutter Linux application. The target name is controlled by BINARY_NAME from the top-level CMakeLists.txt; changing it here breaks `flutter run`. Adds the generated plugin registrant and links against Flutter and GTK via PkgConfig. ```cmake cmake_minimum_required(VERSION 3.13) project(runner LANGUAGES CXX) # Define the application target. To change its name, change BINARY_NAME in the # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer # work. # # Any new source files that you add to the application should be added here. add_executable(${BINARY_NAME} "main.cc" "my_application.cc" "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" ) # Apply the standard set of build settings. This can be removed for applications # that need different build settings. apply_standard_settings(${BINARY_NAME}) # Add preprocessor definitions for the application ID. add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") # Add dependency libraries. Add any application-specific dependencies here. target_link_libraries(${BINARY_NAME} PRIVATE flutter) target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") ``` -------------------------------- ### Define cross-screen step on pushed route Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Define the step on the pushed screen. It is not a descendant of the scope widget but registration still works via the named scope. The step is registered when the Settings screen mounts. ```dart Showcase.auto( id: 'settings-toggle', tourId: 'onboarding', order: 5, title: 'Cross-screen step', description: 'Registered when Settings mounts.', child: ListTile(title: Text('Cross-screen target')), ), ``` -------------------------------- ### Animations: Performance-safe defaults and overrides Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Shows animation settings on Showcase.auto. Defaults are fade/slide only; scale and moving animations are off by default. You can opt in with disableScaleAnimation: false and disableMovingAnimation: false. ```dart Showcase.auto( ..., disableAnimation: false, disableScaleAnimation: false, // opt-in scale disableMovingAnimation: false, // opt-in bounce-ish motion animationDuration: const Duration(milliseconds: 300), scaleAnimationDuration: const Duration(milliseconds: 300), toolTipSlideEndDistance: 8, ) ``` -------------------------------- ### Customize target highlight shape with targetShapeBorder Source: https://github.com/anonimeact/introduce-me/blob/main/README.md Sets the target highlight shape to a circle or rounded rectangle. Use `targetShapeBorder` for the shape, `targetPadding` and `overlayPadding` to expand the hole (effective inflate = overlayPadding + targetPadding), and `targetBorderRadius` when using the default shape. ```dart Showcase.auto( id: 'shape', tourId: 'onboarding', order: 1, title: 'Shape', description: 'Circle or rounded cut-out.', targetShapeBorder: const CircleBorder(), // or: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)) targetPadding: const EdgeInsets.all(6), targetBorderRadius: BorderRadius.circular(12), // used when shape is default overlayPadding: const EdgeInsets.all(2), // also expands the hole child: const CircleAvatar(child: Icon(Icons.person)), ) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.