Micke Alm
ย ยทย Head of User Experience at Steven, free-time builder/founder

"Advanced" custom widgets

Hey guys,
I'm no Dart developer by any means, but I have been getting by with chatGPT and co-pilot so far. However, I've run into a bit of a wall with this one.

I'm still attempting to implement a rich text editor I like, and SuperEditor looks like just the thing (until FlutterFlow gives us exactly the editor I'm using to write this post ๐Ÿ˜…), however, in all the custom widget-videos I've watched on Youtube, it seems to mostly be a matter of importing the right thing and copying the correct code. FlutterFlow often gives me errors when doing this, so I think I'm not quite understanding how/if Flutter projects work differently from how FlutterFlow uses custom code?

Secondly, the way this editor is written, it imports the toolbar into the editor. I see FlutterFlow importing other widgets in the boilerplate code, but as they reference each other it seems they're failing to compile individually? Am I understanding the issue correctly, or why would production code be failing to compile?

There's a lot of reading in the code, so I'm not asking anyone to delve deeply into it (although, here's a clonable project if you care to look), but do I seem to be understanding issues correctly or am I missing some crucial piece of information? ๐Ÿคทโ€โ™‚๏ธ

7 replies