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.
Watch video #4 Flutter Interview Questions online without registration, duration hours minute second in high quality. This video was added by user IntelliLogics 24 April 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 385 once and liked it 7 people.