Skip to content

Commit a2c853b

Browse files
committed
feat: set platform to iOS for consistency across settings screens
1 parent 3492bb2 commit a2c853b

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

client/lib/devices/borneo/lyfi/views/acclimation_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class AcclimationScreen extends StatelessWidget {
7171
final vm = context.watch<AcclimationViewModel>();
7272

7373
return SettingsList(
74+
platform: DevicePlatform.iOS,
7475
sections: [
7576
SettingsSection(
7677
title: Text(context.translate('SETTINGS')),

client/lib/devices/borneo/lyfi/views/controller_settings_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class _ControllerSettingsScreenState extends State<ControllerSettingsScreen> {
9191
/// Convert the old widget-based groups into a [SettingsList] with sections.
9292
SettingsList _buildSettingsList(BuildContext context) {
9393
return SettingsList(
94+
platform: DevicePlatform.iOS,
9495
sections: [
9596
SettingsSection(
9697
title: Text(context.translate('LED CONFIGURATION')),

client/lib/devices/borneo/lyfi/views/settings_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class SettingsScreen extends StatelessWidget {
8585
SettingsList _buildSettingsList(BuildContext context) {
8686
final lvm = context.watch<SettingsViewModel>();
8787
return SettingsList(
88+
platform: DevicePlatform.iOS,
8889
sections: [
8990
SettingsSection(
9091
title: Text(context.translate('DEVICE INFORMATION')),

client/lib/features/my/views/my_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class MyScreen extends StatelessWidget {
1818
Widget buildItems(BuildContext context) {
1919
// Use a SettingsList for consistency with other settings screens
2020
return SettingsList(
21+
platform: DevicePlatform.iOS,
2122
contentPadding: const EdgeInsets.fromLTRB(0, 16, 0, 16),
2223
sections: [
2324
SettingsSection(

client/lib/features/settings/views/app_settings_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class AppSettingsScreen extends ConsumerWidget {
4141
}
4242

4343
SettingsList buildItems(BuildContext context, WidgetRef ref, AppSettingsState state) => SettingsList(
44+
platform: DevicePlatform.iOS,
4445
sections: [
4546
SettingsSection(
4647
title: Text(context.translate('APPEARANCE')),

0 commit comments

Comments
 (0)