|
|
|
@ -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, |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|