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