builder?
Can someone help me?
await and setState
Thanks. Maybe I have to explain a little more… I don’t have state nor widget. It should be a class for calculating some dates. The calculation starts with one date, which I get from shared preferences. Unfortunately shared preferences needs future to get saved data… If I read data, I get an error like type mismatch Future<int> versus int…
just add 'await' before the future
and where is the error?
Обсуждают сегодня