In-app demo mode that presses real buttons - #132
Draft
apps4av wants to merge 3 commits into
Draft
Conversation
Introduce a registry of playable tours with a spotlight overlay. Offer the demo once after onboarding and from Menu → Watch Demo. Ship MAP, PLAN, and FIND tours; new topics are another list entry. Co-authored-by: Zubair Khan <apps4av@gmail.com>
Wait.seconds cannot be const, and GoTab.map was parsed as a named constructor. Co-authored-by: Zubair Khan <apps4av@gmail.com>
MaterialApp.builder places DemoHost beside the navigator, so Pause/Skip/Exit tooltips had no Overlay ancestor. Wrap the host stack in Overlay. Co-authored-by: Zubair Khan <apps4av@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a replayable demo mode that drives the live UI so new users can see how MAP, PLAN, and FIND work.
How to use it
MAP → Menu → Watch Demo— play all topics or pick one.How to add another topic
DemoTarget(id: DemoIds.foo, child: existingButton)lib/demo/demo_ids.dartDemoTourinlib/demo/tours/DemoRegistry.toursSafety
Tours in this PR
User manual Section 1.3, 3.2, 9.7, 14, and UC-27 are updated; Help PDF regenerated.
flutter analyze lib/demois clean andtest/demo_registry_test.dartpasses, including a regression test that the Pause/Skip/Exit tooltips build whenDemoHostsits inMaterialApp.builder(they need their ownOverlay).