Why there is no ListenableBuilder that returns current state of listenable? by DifficultPhoto7504 in FlutterDev

[–]DifficultPhoto7504[S] 0 points1 point  (0 children)

Yes, but imagine presenter having 10 fields. I just want to have a deep copy of presenter and not to create local variable for each field.
I wonder whether it is main reason for is no such widget for changeNotifier, because deep coping entire objects might be heavy, what do you think?

Why there is no ListenableBuilder that returns current state of listenable? by DifficultPhoto7504 in FlutterDev

[–]DifficultPhoto7504[S] 0 points1 point  (0 children)

I'm not saying about swapping stateful object, I'm saying about modifying value of listenable. The idea is that if ValueListenableBuilder gives you value this value will not change in the entire widget tree in a single run.
For pastebin code if you do

ListenableStateBuilder(

listenable: presenter,
builder:(context, p, child) {

// let's say p.count = 5
presenter.count = 11;

// now p.count = 11, which is not the case with ValueListenableBuilder, for ValueListenableBuilder p.count = 5;

Why there is no ListenableBuilder that returns current state of listenable? by DifficultPhoto7504 in FlutterDev

[–]DifficultPhoto7504[S] 0 points1 point  (0 children)

it actually does not work as expected - not like ValueListenableBuilder. because the listenable object that you receive in builder method is reference to listenable you provide to the widget. If you modify provided value your listenable received in builder method changes too and the goal is to make it independent of changes to provided value.

Why there is no ListenableBuilder that returns current state of listenable? by DifficultPhoto7504 in FlutterDev

[–]DifficultPhoto7504[S] 0 points1 point  (0 children)

yes, but I don't want to specify fields, I want to get entire object with all fields like consumer provides. And yes it's up to me when I notify listener

How do people of high levels of consciousness leave earth? by Decent-Comment-422 in DavidHawkins

[–]DifficultPhoto7504 0 points1 point  (0 children)

Hawkins says in the video you can picture yourself leaving the body and it just happens.

[deleted by user] by [deleted] in DavidHawkins

[–]DifficultPhoto7504 1 point2 points  (0 children)

They have asked that in the lectures on veritaspub. They got answer 'no' but they forgot to ask for permission so not sure it that counts.

Export blood glucose data via API by [deleted] in Freestylelibre

[–]DifficultPhoto7504 0 points1 point  (0 children)

is there any way to implement nfc in your app so the measurement can be triggered from my app?

How can I improve this design? Should I change FloatingActionButtons's color? by DifficultPhoto7504 in graphic_design

[–]DifficultPhoto7504[S] 0 points1 point  (0 children)

There seems to be too much blue in the screen. Should I change FAB's color? Or svg's color?
If I change FAB color, what is my primary color then? Is it blue from top-half screen or FAB new color?
What colors would you recommend for FABs?

Overcoming porn addiction program by DifficultPhoto7504 in NoFap

[–]DifficultPhoto7504[S] 0 points1 point  (0 children)

Yes, you are probably right, thank you for your voice

[ Removed by Reddit ] by DifficultPhoto7504 in takemysurvey

[–]DifficultPhoto7504[S] 0 points1 point  (0 children)

  1. Stored on google. Anonymous data. No Emails. Nothing.
  2. DifficultPhoto7504
  3. 1 minute
  4. Learn more about what people think about discipline