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, duration hours minute second in high quality that is uploaded to the channel IntelliLogics 24 April 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 385 times and liked it 7 visitors.