Read value from slider

- Added To-do. (Was supposed to be added ages ago, but I had HDD issues)
This commit is contained in:
Tony Bark 2021-05-28 06:20:13 -04:00
parent 36c7e3d59b
commit 0cf72ac778
2 changed files with 11 additions and 2 deletions

9
Todo.md Normal file
View file

@ -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

View file

@ -78,8 +78,8 @@ class _GamePageState extends State<GamePage> {
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: <Widget>[okButton],
);
});