Flutter Check iOS ou Android
bool isIOS = Theme.of(context).platform == TargetPlatform.iOS;
bool isAndroid = Theme.of(context).platform == TargetPlatform.android;
MeVyom
bool isIOS = Theme.of(context).platform == TargetPlatform.iOS;
bool isAndroid = Theme.of(context).platform == TargetPlatform.android;
import 'dart:io' show Platform;
Platform.isAndroid
? CircularProgressIndicator ()
: CupertinoActivityIndicator ()