platformDesignSystem property
Returns the most appropriate PlatformDesignSystem
for the current host
Implementation
@override
PlatformDesignSystem get platformDesignSystem {
switch (platformHost) {
case PlatformHost.android:
case PlatformHost.linux:
return PlatformDesignSystem.materialDesign;
case PlatformHost.ios:
case PlatformHost.macos:
return PlatformDesignSystem.appleHumanIntercace;
case PlatformHost.windows:
return PlatformDesignSystem.fluentDesign;
case PlatformHost.unknown:
return PlatformDesignSystem.unknown;
}
}