diff --git a/packages/neon/neon/lib/src/utils/adaptive.dart b/packages/neon/neon/lib/src/utils/adaptive.dart index f2c3a4de..928d3436 100644 --- a/packages/neon/neon/lib/src/utils/adaptive.dart +++ b/packages/neon/neon/lib/src/utils/adaptive.dart @@ -7,13 +7,14 @@ bool isCupertino(final BuildContext context) { final theme = Theme.of(context); switch (theme.platform) { + case TargetPlatform.iOS: + case TargetPlatform.macOS: + return true; case TargetPlatform.android: case TargetPlatform.fuchsia: case TargetPlatform.linux: case TargetPlatform.windows: + default: return false; - case TargetPlatform.iOS: - case TargetPlatform.macOS: - return true; } } diff --git a/packages/neon/neon/lib/src/widgets/adaptive_widgets/list_tile.dart b/packages/neon/neon/lib/src/widgets/adaptive_widgets/list_tile.dart index e0392fe7..ea69c50d 100644 --- a/packages/neon/neon/lib/src/widgets/adaptive_widgets/list_tile.dart +++ b/packages/neon/neon/lib/src/widgets/adaptive_widgets/list_tile.dart @@ -88,18 +88,6 @@ class AdaptiveListTile extends StatelessWidget { final theme = Theme.of(context); switch (theme.platform) { - case TargetPlatform.android: - case TargetPlatform.fuchsia: - case TargetPlatform.linux: - case TargetPlatform.windows: - return ListTile( - title: title, - subtitle: subtitle, - leading: leading, - trailing: trailing, - onTap: onTap, - enabled: enabled, - ); case TargetPlatform.iOS: case TargetPlatform.macOS: final tile = CupertinoListTile( @@ -130,6 +118,19 @@ class AdaptiveListTile extends StatelessWidget { } return tile; + case TargetPlatform.android: + case TargetPlatform.fuchsia: + case TargetPlatform.linux: + case TargetPlatform.windows: + default: + return ListTile( + title: title, + subtitle: subtitle, + leading: leading, + trailing: trailing, + onTap: onTap, + enabled: enabled, + ); } } }