Check Device In Flutter

[Solved] Check Device In Flutter | Javascript Frameworks Flutter - Code Explorer | yomemimo.com
Question : check device in flutter

Answered by : niraj-kafle

 import 'dart:io' show Platform; Widget getWidget() { if (Platform.isAndroid) { return YOUR_ANDROID_WIDGET; } else if (Platform.isIOS) { return YOUR_IOS_WIDGET; } }

Source : | Last Update : Tue, 05 Oct 21

Answers related to check device in flutter

Code Explorer Popular Question For Javascript Frameworks Flutter