Luke Greenwood 💙

151 posts

Luke Greenwood 💙

Luke Greenwood 💙

@_luketg8

Full Stack Developer of 10+ years 🚀 Lead Flutter Developer @ https://t.co/jzsGMAyEcV 🧑🏻‍💻 https://t.co/KNYsC7fPaG

Katılım Temmuz 2022
125 Takip Edilen110 Takipçiler
Sabitlenmiş Tweet
Luke Greenwood 💙
Luke Greenwood 💙@_luketg8·
A little insight into what I’ve been working on lately with @FlutterDev and @rive_app with a bit of help from Firebase AI ✨
English
4
0
20
1K
Luke Greenwood 💙 retweetledi
Jesse Ezell
Jesse Ezell@jezell·
People saying Flutter is dead because AI makes it easier to make native apps are missing that AI also makes it easier to make Flutter better 😂
English
18
9
142
8.7K
Luke
Luke@luke_pighetti·
what’s everyone building right now?
English
32
0
21
2.7K
Matt Carroll
Matt Carroll@SuprDeclarative·
@damy_wise I’m about to move my focus from Flutter to Rive. Curious to hear your thoughts based on your experiences.
English
4
0
5
4.4K
Ahmad Wise's Apps
Ahmad Wise's Apps@damy_wise·
Flutter-Native/Webview-Flutter migration|Part 2 Initially I was experimenting around, trying to find ways to improve performance. I don't know why but I tried to migrate the whole settings window into Rive, which now I know is stupid; now that I'm older and wiser.
Ahmad Wise's Apps@damy_wise

I'm gonna start tweeting about Flutter-Native/Webview-Flutter migration instead. And then maybe make an article based on the tweets. To start: I checked the commit history and it actually started somewhere around May, around the time I posted x.com/damy_wise/stat…

English
1
1
25
5.3K
Luke
Luke@luke_pighetti·
Luke tweet media
ZXX
2
0
55
3.2K
Luke Greenwood 💙
Luke Greenwood 💙@_luketg8·
@chimon1984 Yet to really try it out, how is the mutation syntax feeling? I know there was a lot of back and forth on that
English
1
0
0
42
Luke
Luke@luke_pighetti·
please tag all the best @rive_app contractors
English
20
3
64
9.1K
Luke Greenwood 💙
Luke Greenwood 💙@_luketg8·
@caseycrogers I’ve used them a lot too, both in Flutter and React and I abandoned them on Flutter after having to onboard some devs to use them. They just feel too alien in a Flutter codebase and are so easy to mess up with
English
1
0
1
27
Casey Rogers
Casey Rogers@caseycrogers·
@_luketg8 I use hooks on a day to day basis and I agree the magic is really bad, but IMO more around how an ostensibly stateless thing (a pure function call) is secretly stateful through complex subtle machinery. I think there’s a lot of ROM for things inbetween.
English
1
0
1
19
Casey Rogers
Casey Rogers@caseycrogers·
I really don't like the service pattern seen in a lot of #Flutter code. Its adds unnecessary indirection. People say it helps testing, but I find faking the HTTP client itself to be a much more effective testing strategy-and it doesn't pollute your production code.
Casey Rogers@caseycrogers

@sarthak2575 @QodoAI Now we inject a faked HTTP client and configure the client to pass the faked objects (serialized to JSON internally by the fake client) when the corresponding endpoints are triggered. This is a little awkward to set up, but we've found it to be much better at catching bugs.

English
4
0
6
1.5K
Casey Rogers
Casey Rogers@caseycrogers·
Agreed that your async button flow needs to be independent from your form system, but also easily composable with your form state. Separate, but very easy to wire together. I had an inherited widget based system where it holds the action and the state at the top of the page and the button binds to it and anything else that needs to display state can reference it.
English
1
0
0
15
Luke Greenwood 💙
Luke Greenwood 💙@_luketg8·
@caseycrogers Also async handling goes beyond just forms too. Internally standardising (as much as possible) loading, success + error states and just overall async flow in general is a must
English
1
0
1
20
Luke Greenwood 💙
Luke Greenwood 💙@_luketg8·
@caseycrogers I'd also argue StatefulWidgets aren't tedious for init/disposal compared to the extra complexity of another abstraction layer, I actually have grown to quite like the in your face explicit lifecycles compared to something like hooks
English
2
0
1
19
Luke Greenwood 💙
Luke Greenwood 💙@_luketg8·
@caseycrogers I'm all for abstracting the logic into functions/classes outside the widget, just not the part that directly interacts with the form or other ephemeral state. Flutter already handles that well within widgets - adding extra controllers just adds unnecessary boilerplate
English
1
0
0
24
Luke Greenwood 💙
Luke Greenwood 💙@_luketg8·
@caseycrogers imo a form controller here creates unnecessary indirection when Flutter already has built in support for forms and local state, so you're just fighting the framework 👇
English
1
0
0
29