mirror of
https://github.com/tonytins/bullseye.git
synced 2025-03-22 15:12:19 +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,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return PlatformAlertDialog(
|
return PlatformAlertDialog(
|
||||||
title: Text("Hello There."),
|
title: PlatformText("Hello There."),
|
||||||
content: Text("This is my first pop-up."),
|
content: PlatformText("The slider's value is ${_model.current}"),
|
||||||
actions: <Widget>[okButton],
|
actions: <Widget>[okButton],
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue