From 7599ab71b122f88804dbb6505556697ba4aeed9a Mon Sep 17 00:00:00 2001 From: Kelvin Lim Date: Tue, 21 Dec 2021 12:20:04 -0600 Subject: [PATCH] create multiline text --- lib/instructions.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/instructions.dart b/lib/instructions.dart index ff0e4f6..bbe0a99 100644 --- a/lib/instructions.dart +++ b/lib/instructions.dart @@ -14,14 +14,18 @@ class SecondScreen extends StatelessWidget { child: Center( child: Padding( padding: const EdgeInsets.all(8.0), - child: new Text("In this task, you will need to find the hidden pathway. - You start by tapping on the tile in the top left corner, then tap on tiles one at a time to find the hidden path to the tile in the bottom right corner. - A checkmark in a green box means that you chose correctly. An X in a red box means you chose incorrectly. After a wrong move, you must tap on the last correct tile you chose, then choose a tile in a different direction. + child: new Text( + """ + In this task, you will need to find the hidden pathway. + + You start by tapping on the tile in the top left corner, then tap on tiles one at a time to find the hidden path to the tile in the bottom right corner. + A checkmark in a green box means that you chose correctly. An X in a red box means you chose incorrectly. After a wrong move, you must tap on the last correct tile you chose, then choose a tile in a different direction. \ + The rules for the task are: Only move to adjacent tiles (left, right, up, or down). Do not move diagonally. Do not tap on the same tile twice. - Move as quickly and as accurately as you can", + Move as quickly and as accurately as you can""", style: new TextStyle(fontSize: 20, height:1.5)), ), ),