tidy: settings page

This commit is contained in:
lollipopkit
2023-09-17 14:30:34 +08:00
parent 1edd54b4df
commit 603e226995
16 changed files with 421 additions and 475 deletions

View File

@@ -11,6 +11,38 @@ enum PlatformType {
web,
fuchsia,
unknown;
String get prettyName {
switch (this) {
case PlatformType.android:
return 'Android';
case PlatformType.ios:
return 'iOS';
case PlatformType.linux:
return 'Linux';
case PlatformType.macos:
return 'macOS';
case PlatformType.windows:
return 'Windows';
case PlatformType.web:
return 'Web';
case PlatformType.fuchsia:
return 'Fuchsia';
case PlatformType.unknown:
return 'Unknown';
}
}
/// Whether has platform specific settings.
bool get hasSettings {
switch (this) {
case PlatformType.android:
case PlatformType.ios:
return true;
default:
return false;
}
}
}
final _p = () {