PUT at least code to get the selected item #111
Closed
Samiakaraeen
started this conversation in
Ideas
Replies: 1 comment
-
Hi @Samiakaraeen, please refer to the last time when this question has been answered: #66 You don't get a value from the wheel, instead you tell the wheel which value it is supposed to show. In this example you can see the value is known before it is added to the StreamController. So you can use it from there: onFling: () {
int value = Random().nextInt(fortuneWheelItems.length);
controller.add(value);
print(value);
}, I'd also encourage to get familiar with the basics of Dart Streams as this is fundamental to understand the underlying concepts. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how to get the selected ite , if no code given thi sis usless
Beta Was this translation helpful? Give feedback.
All reactions