|
|
@ -88,18 +88,6 @@ class AdaptiveListTile extends StatelessWidget { |
|
|
|
final theme = Theme.of(context); |
|
|
|
final theme = Theme.of(context); |
|
|
|
|
|
|
|
|
|
|
|
switch (theme.platform) { |
|
|
|
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.iOS: |
|
|
|
case TargetPlatform.macOS: |
|
|
|
case TargetPlatform.macOS: |
|
|
|
final tile = CupertinoListTile( |
|
|
|
final tile = CupertinoListTile( |
|
|
@ -130,6 +118,19 @@ class AdaptiveListTile extends StatelessWidget { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return tile; |
|
|
|
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, |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|