Flutter Interview Questions ( Part 4 )
When do you use 'double.infinity’?
It’s used when you want to specify the widget should be as big as a parent.
How do you create a widget that looks different in iOS and Android?
You can use the flutter_platform_widgets plugin, which makes things easier to handle, or you can check the platform manually by doing:
Platform.isIOS from dart:io package
or
if(Theme.of(context).platform == TargetPlatform.iOS)
Then, create/configure widgets depending on it.