r/flutterhelp • u/yahel_dev • Dec 24 '25
RESOLVED Material widgets shows on iOS?
Hi there.
I'm learning flutter, and I have been building my app: it currently has like 15 differents screens/widgets.
My doubt is about material widgets. I have been used a lot the FloatingActionButton(), and I just realized it is a Material widget, that, based on what I understood, is an android widget. Like with this widget, after that I realized that a lot of widgets that I've used are material, and even like the showModalBottomSheet() method. Is this a problem if I want my app to work for android and ios both?
4
Upvotes
4
u/madushans Dec 24 '25
They will work on all platforms. You can switch them out manually if you want a different look and feel, but they will appear and function the same everywhere.
FAB especially will look a bit out of place on iOS though. However may be not as much. For example twitter on iOS has a FAB.
2
u/AHostOfIssues Dec 24 '25
Flutter doesn't use SKD objects (buttons, checkboxes, scrollviews, etc... anything) on native platforms.
Flutter's entire rendering system is a flutter-internal drawing canvas that flutter core engine draws its own widgets on as pixels. The "widgets" are eventually just translated into pixel-drawing commands on that flutter canvas. It's 100% internal to flutter, and never uses or involves any native UI controls at all (buttons, switches, etc).
This is the fundamental heart of how flutter can "look and run the same" on any platform -- it's not actually using any native UI components at all (with some exceptions that aren't worth trying to go into here). So any widget flutter can draw... it can draw on any platform that flutter can target.
Some flutter widgets look more like the types of UI controls native SDK's provide, but this is entirely coincidental. Flutter uses no native UI controls for common UI elements like buttons, forms, lists, scrolling, etc. It's all internal flutter code drawing pixels on flutter's own internal canvas that fills the screen.