📜  AdaptivePlatformDensity - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:20.410000             🧑  作者: Mango

代码示例1
static VisualDensity get adaptivePlatformDensity {
  switch (defaultTargetPlatform) {
    case TargetPlatform.android:
    case TargetPlatform.iOS:
    case TargetPlatform.fuchsia:
      break;
    case TargetPlatform.linux:
    case TargetPlatform.macOS:
    case TargetPlatform.windows:
      return compact;
  }
  return VisualDensity.standard;
}