Answers for "flutter check android"

2

check if is android flutter

import 'dart:io' show Platform;

if (Platform.isAndroid) {
  // Android-specific code
} else if (Platform.isIOS) {
  // iOS-specific code
}
Posted by: Guest on September-09-2020

Browse Popular Code Answers by Language