floppypaste's Avatar

floppypaste

@floppypaste.bsky.social

Flutter Developer. Check out my logging package: notice

108 Followers  |  200 Following  |  27 Posts  |  Joined: 08.11.2024  |  1.6233

Latest posts by floppypaste.bsky.social on Bluesky

I can't comprehend why the chose to name them this way. main-axis- / cross-axis-alignment would've simply done the job ...

13.03.2025 13:30 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Are you planning on making it work with sliver layouts? With that feature, the package would be a clear no-brainer. Sadly a lot of my apps make extensive use of Slivers.

06.03.2025 10:25 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I was referring to the boilerplate required for json (or other formats) serialization that is written automatically by build_runner or macros. I'm interested if Ada simply requires you to write that manually like C does or if there is an alternative

30.01.2025 12:55 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 0

Does Ada offer an alternative to writing all that boilerplate then?

30.01.2025 12:07 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I hope this is the right path for the future. Macros felt like the most fitting, natural step forward for the whole ecosystem, especially regarding the current pain points. build_runner was always a pain to use in the past (at least for my personal experience), so doubling down on it seems a bit odd

29.01.2025 23:43 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
An update on Dart macros & data serialization We have invested significant time and resources to prototype macros over the past couple years. Unfortunately, each time we solved a majorโ€ฆ

We have unfortunately decided to stop working on macros.

You can read the statement here: medium.com/dartlang/an-...

Feel free to ask me any follow up questions.

29.01.2025 22:23 โ€” ๐Ÿ‘ 27    ๐Ÿ” 5    ๐Ÿ’ฌ 5    ๐Ÿ“Œ 0

This is so awesome, this was a missing peace of flutter! How do you overlay the transitioning widgets and get their positions? Feels like magic not having to use a Host Widget somewhere

18.12.2024 16:42 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Could you add me too? ๐Ÿ‘‰๐Ÿ‘ˆ

18.12.2024 07:45 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I feel like the momentum for signals is framework-independently really really high but contrary to that, there aren't any resourcess right now that go more in-depth on the topic. I am missing guides on where to use them in your application (presentation-only vs signals-all-the-way) for example

15.12.2024 13:02 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Tha sounds great! So in general using signal containers to keep track of your resources (id -> model) in a reactive way is an expected use-case for signals? ๐Ÿ˜… Looking forward to the container update ๐ŸŽ‰

15.12.2024 13:02 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Maybe i am trying to hard to use signals as a caching framework? ๐Ÿ˜…

14.12.2024 23:54 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Could there be room for a hybrid approach? Staying completely sync for sync signals and using zoned values for computedAsync? Maybe my application is special, but i do a lot of async stuff like this with multiple dependencies and this one thing would really hold me back from migrating from Riverpod

14.12.2024 23:54 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

The problem in my case is, that the dependency is part of a signal container and the result of a future is the key. I guess there is nothing I can really do in that case right?

14.12.2024 23:46 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Zones Manage your asynchronous code: handle uncaught errors, override behavior (such as printing and scheduling tasks), and more.

@rodydavis.com I was running into problems needing to use signals across async gaps yesterday. I was just wondering if you've ever considered using darts runZoned() for storing the evalContext across async gaps? dart.dev/libraries/as... Has most likely a performance impact, could still be worth it.

11.12.2024 12:06 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Do you mean the thing where the analyzer acts like the macro does not exist? I did discover a nice little workaround: bsky.app/profile/flop...

07.12.2024 15:27 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I've been experimenting with signals for the last few days and they are really amazing. Are you planning on adding linkedSignal() from angular too? Feels like a missing piece. I am not a friend of the whole import decides which signal you get thing, but i guess its just preference

03.12.2024 17:03 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Yessss ๐ŸŽ‰๐ŸŽ‰

30.11.2024 08:25 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Definitely data classes and json serialization for me. The dx of the build runner is horrible and so is the alternative of writing all that boilerplate by yourself. Other than that I am currently not very happy with the routing options available.

29.11.2024 15:46 โ€” ๐Ÿ‘ 7    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

OMG I feel so stupid right now. I did some crazy over engineered shenanigans to make a 0 to "auto" transition (did some offstage stuff to get the wanted size of the animated widget) and even offered it as a library.

25.11.2024 15:57 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I absolutly despise #dart 's build runner dx although I couldn't live without it. The fact that i need to flood my codebase with tons of .g files generated in a 2-minute process every time i change a simple variable drives me actually a bit crazy. I desperately need macros.

24.11.2024 22:52 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Thanks, will definitely take a look!

21.11.2024 20:38 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

What are some nice recent in-depth #dart and #flutter talks one shouldn't miss out on? I feel like the broader topics get a lot of attention while the deep dives fly unter the radar

21.11.2024 18:09 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

It is also very common that some straight up rip their articles from sources like stack overflow. And some posts are just very emotional opinions presented as facts without any reasoning ... The good articles are behind a paywall though!

21.11.2024 18:02 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Macro doesn't execute when defined in a project outside of analysis roots ยท Issue #55670 ยท dart-lang/sdk I was investigating an issue @mit-mit / @davidmorgan are seeing of macros not executing in VS Code. I can reproduce the issue and it seems to be that when the project that contains a macros definit...

While this is really nice and works like a charm (The data_class package is awesome!) you need to keep in mind that breaking changes to the macro api are expected and this is not intended by the dart team afaict: github.com/dart-lang/sd.... Sill nice if you want to try it out though :)

19.11.2024 17:54 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
A macro class extending another macro class without defining any fields. This makes the inheriting class be accepted as a macro by darts analyzer.

A macro class extending another macro class without defining any fields. This makes the inheriting class be accepted as a macro by darts analyzer.

You can make the analyzer accept third-party macros by simply extending them in your project like so

19.11.2024 17:54 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

You can't really use third-party macros with #flutter or #dart right now, because the analyzer currently only supports your own declared macros. I've discovered a very simple trick to make the analyzer happy though:

19.11.2024 17:54 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 1

Get B if you can. You may want to use docker at some point, and it is a RAM hog on macOS

17.11.2024 21:16 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Jusant :)

16.11.2024 00:32 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@floppypaste is following 19 prominent accounts