flutter_feature_tour 0.2.0
flutter_feature_tour: ^0.2.0 copied to clipboard
Spotlight feature tours and onboarding for Flutter apps: highlight widgets, explain them with themed info cards, and remember the user's progress.
Changelog #
All notable changes to the Flutter Feature Tour package will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.2.0 - 2026-10-13 #
Added #
- Spotlight overlay: the highlighted widget is cut out of the dimmed backdrop.
HighlightShape.roundedRectangle, per-highlightpaddingandborderRadius.- Info card placement that keeps the card on screen (safe area and keyboard aware).
- Spotlight follows targets that scroll, move or resize; targets are scrolled into view (
autoScroll). allowTargetInteractionandadvanceOnTargetTaponFeatureHighlight.- Conditional steps with
showIf; steps whose target is not on screen are skipped (skipMissingTargets). - Per-step
interactiveWidgetBuilderand customcontent. - "Back" button (
showPreviousButton) andnext(),previous(),skip(),dismiss(),isActive. - Multiple independent tours with
OnboardingService.forTour(id). setSteps,clearSteps,steps,resetOnboarding,persistProgress.FeatureTourLabelsfor localization,showCompletionCard,showSkipButton,barrierTapBehavior.onComplete,onSkipandonStepChangedcallbacks;onboarding_skipped,step_previousandonboarding_dismissedanalytics events;tour_idon every event.FeatureTourTheme.copyWithand new theme fields (onPrimaryColor,highlightPadding,highlightCornerRadius,cardMaxWidth,cardElevation,cardPadding,animationDuration).- Reduced-motion support, screen reader announcements, focus trapping, Escape and arrow keys.
OnboardingServiceis aChangeNotifier; newisShowingCompletionandtotalStepsgetters.OnboardingService.createfor non-shared, injectable instances.TourProgressRepository,TourProgressRepositoryImpl,TourStorageDataProvider,SharedPreferencesDataProviderandInMemoryDataProviderfor custom persistence.overlayBuilderto re-provide page-scoped providers; page themes are carried over automatically.navigatorKeyfallback for contexts above theNavigator.targetWaitTimeout: the tour waits for targets, and forshowIfdata, that are still loading.dismissOnRouteChange: the tour hides while a dialog, sheet or menu is open above its page, and is dismissed when the page is covered by another page, popped or removed (with or without a transition, including declarativepagesnavigators and nested navigators).titleBuilder,descriptionBuilderandlabelsBuilderfor locale-aware text.- Translatable screen reader labels (
nextSemanticLabel, …). - Test suite.
Fixed #
- Highlights were drawn misaligned while the overlay animated in (the whole layer was scaled).
- The highlighted widget was dimmed along with the rest of the screen.
- The info card could run off the screen edge.
- A step whose target was missing showed an empty dark screen.
- The Android back button popped the page underneath while the tour stayed on screen.
FeatureTourTheme.fromThemeproduced a light overlay in dark mode and could crash on themes without text colors.- Calling
startOnboardingtwice could show two overlays. - Steps were duplicated when the setup code ran again (use
setSteps). - Card buttons overflowed with long or translated labels; long content overflowed small screens.
- Saved progress used generic SharedPreferences keys that could clash with the app's own. Progress is now saved under
flutter_feature_tour.<tourId>.*; progress saved by 0.1.x is still read for the default tour when both of its keys exist, and the old keys are never changed or removed. - Starting the tour while the screen was loading showed "You're All Set!" and marked the tour as completed.
- Screen readers announced English button labels even when the labels were translated.
- Arrow keys did not follow right-to-left layouts.
- The tour stayed on screen after navigating to another page, and dialogs opened underneath it.
- Targets on a hidden
IndexedStacktab or insideOffstagewere treated as on screen. - Declared Flutter version was too low for the APIs used (now
>=3.27.0).
Changed #
- Skipping ends the tour immediately instead of showing the completion card.
- Circle highlights cover the whole target.
FeatureHighlight.iconis optional;titleanddescriptionare optional when builders are given.startOnboardingandrestartOnboardingreturnFuture<bool>.- The example is now Taskflow, a small task manager that uses every feature, in English, Spanish and Arabic.
- Source reorganized into
data_providers/,repositories/,models/,services/,ui/andextensions/, one public class per file, withpackage:imports throughout.
Removed #
- Unused native plugin scaffolding and the
iconsax,web,flutter_web_pluginsandplugin_platform_interfacedependencies.
0.1.0 #
- Version bump.
0.0.2 - 2024-11-11 #
- Switched from Hive to SharedPreferences for better cross-platform support
- Added comprehensive documentation
- Improved error handling
- Added platform-specific configurations
- Fixed initialization issues
- Added analytics tracking support
- Added theme customization options
- Added interactive widget support
0.0.1 - 2024-10-25 #
Added #
- Initial release of Flutter Feature Tour package
- Customizable styling with
FeatureTourTheme - Support for multiple highlight shapes (circle, rectangle, custom path)
- Analytics integration with customizable callback
- Interactive elements within tour steps
- Smooth animations and transitions for overlay and highlights
- Persistence of tour progress using Hive
- Basic accessibility features including semantic labels and keyboard navigation
OnboardingServicefor easy setup and management of the feature tourFeatureHighlightclass for defining individual tour steps- Support for custom theme based on app's theme
- Ability to restart the onboarding process