mirror of
https://github.com/tonytins/bullseye.git
synced 2025-03-15 04:11:22 +00:00
Read value from slider
- Added To-do. (Was supposed to be added ages ago, but I had HDD issues)
This commit is contained in:
parent
36c7e3d59b
commit
0cf72ac778
2 changed files with 11 additions and 2 deletions
9
Todo.md
Normal file
9
Todo.md
Normal 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
|
|
@ -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],
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue