For UI that should differ slightly on iOS and Android, ?
import 'dart:io' show Platform;
Now you can detect the platform by just doing
Platform.isIOS // for ios Platform.isAndroid //for android