From e3ac0d3464ded265c0ec4e051bf05c404a02940d Mon Sep 17 00:00:00 2001 From: Masashi Aso Date: Sat, 2 May 2026 11:31:48 +0900 Subject: [PATCH] fix: show value for simple tiles on iOS --- .../lib/screens/gallery/cross_platform_settings_screen.dart | 3 ++- lib/src/tiles/platforms/ios_settings_tile.dart | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/example/lib/screens/gallery/cross_platform_settings_screen.dart b/example/lib/screens/gallery/cross_platform_settings_screen.dart index 508a224..734f183 100644 --- a/example/lib/screens/gallery/cross_platform_settings_screen.dart +++ b/example/lib/screens/gallery/cross_platform_settings_screen.dart @@ -110,9 +110,10 @@ class _CrossPlatformSettingsScreenState SettingsSection( title: Text('Account'), tiles: [ - SettingsTile.navigation( + SettingsTile( leading: Icon(Icons.phone), title: Text('Phone number'), + value: Text('+1 123 456 789'), ), SettingsTile.navigation( leading: Icon(Icons.mail), diff --git a/lib/src/tiles/platforms/ios_settings_tile.dart b/lib/src/tiles/platforms/ios_settings_tile.dart index 8bf0abb..d1e7011 100644 --- a/lib/src/tiles/platforms/ios_settings_tile.dart +++ b/lib/src/tiles/platforms/ios_settings_tile.dart @@ -290,8 +290,10 @@ class IOSSettingsTileState extends State { ), // Value is Flexible here so it can shrink without // pushing the title when the text is long. (Issue #186) - if (widget.tileType == - SettingsTileType.navigationTile && + if ((widget.tileType == + SettingsTileType.navigationTile || + widget.tileType == + SettingsTileType.simpleTile) && widget.value != null) Flexible( child: DefaultTextStyle(