diff --git a/samples/tutorial/Tutorial1.md b/samples/tutorial/Tutorial1.md index 8cbaebfa33..24f98c1f1a 100644 --- a/samples/tutorial/Tutorial1.md +++ b/samples/tutorial/Tutorial1.md @@ -199,8 +199,6 @@ class TutorialViewModel(savedState: SavedStateHandle) : ViewModel() { Now, we've created a `ViewRegistry` that consists of, so far, only our `WelcomeLayoutRunner`'s `ViewFactory`, and we're using it to set the content view of our activity. When the activity is started, it will start running the `WelcomeWorkflow`. -We can finally run the app again! It will look exactly the same as before, but now it is powered by our workflow. - ## Driving the UI from Workflow State Right now, the workflow isn't handling any of the events from the UI. Let's update it to be responsible for the login username as well as the action when the login button is pressed. diff --git a/samples/tutorial/Tutorial2.md b/samples/tutorial/Tutorial2.md index c81cbe3056..da449aa7f5 100644 --- a/samples/tutorial/Tutorial2.md +++ b/samples/tutorial/Tutorial2.md @@ -258,6 +258,7 @@ object WelcomeWorkflow : StatefulWorkflow() // … } ``` + Remove the lambda at the end of `context.renderChild(WelcomeWorkflow)` The override for using `renderChild` on a child Workflow with `Nothing` as its output type does not have a lambda parameter @@ -272,7 +273,7 @@ The override for using `renderChild` on a child Workflow with `Nothing` as its o val welcomeScreen = context.renderChild(WelcomeWorkflow) return welcomeScreen } - ``` +``` Update the `TutorialActivity` to start at the `RootWorkflow` and we'll see the welcome screen again: diff --git a/samples/tutorial/images/layout-runner-name.png b/samples/tutorial/images/layout-runner-name.png index 9f7b46921e..af9730b67b 100644 Binary files a/samples/tutorial/images/layout-runner-name.png and b/samples/tutorial/images/layout-runner-name.png differ diff --git a/samples/tutorial/images/workflow-name.png b/samples/tutorial/images/workflow-name.png index 8eda0ad9d6..c2d0c004b4 100644 Binary files a/samples/tutorial/images/workflow-name.png and b/samples/tutorial/images/workflow-name.png differ