Periksa perangkat di Flutter

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