From 0cf72ac77852f000c81af2088dbc1b9d02b0c0b8 Mon Sep 17 00:00:00 2001 From: Tony Bark <35226681+tonytins@users.noreply.github.com> Date: Fri, 28 May 2021 06:20:13 -0400 Subject: [PATCH] Read value from slider - Added To-do. (Was supposed to be added ages ago, but I had HDD issues) --- Todo.md | 9 +++++++++ lib/main.dart | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 Todo.md diff --git a/Todo.md b/Todo.md new file mode 100644 index 0000000..0d3d133 --- /dev/null +++ b/Todo.md @@ -0,0 +1,9 @@ +# To-do + +## Part 1 + +- [x] Add "Hit me" button +- [x] Show a pop-up when the user taps it +- [x] Put game info on the screen +- [x] Put slider on screen: 1 -> 100 +- [x] Read value of the slider \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart index 72a11cc..1b689ca 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -78,8 +78,8 @@ class _GamePageState extends State { context: context, builder: (BuildContext context) { return PlatformAlertDialog( - title: Text("Hello There."), - content: Text("This is my first pop-up."), + title: PlatformText("Hello There."), + content: PlatformText("The slider's value is ${_model.current}"), actions: [okButton], ); });