Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions lib/features/settings/preferences_appearance_section.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,10 @@ class _PreferencesAppearanceSectionState
final themes = c.availableThemes;
final refreshingThemes = c.isLoadingAvailableThemes;

return material.SingleChildScrollView(
primary: false,
child: material.Column(
crossAxisAlignment: material.CrossAxisAlignment.start,
children: [
const Text('Appearance').semiBold().small().foreground(),
return material.Column(
crossAxisAlignment: material.CrossAxisAlignment.start,
children: [
const Text('Appearance').semiBold().small().foreground(),
const material.SizedBox(height: 8),
PreferencesFieldRow(
label: 'Theme mode',
Expand Down Expand Up @@ -365,10 +363,9 @@ class _PreferencesAppearanceSectionState
'Install from URL requires HTTPS and optional SHA-256 verification. '
'VS Code JSON/JSONC (.colors subset) and Querya custom JSON are supported.',
),
],
),
],
);
},
);
},
);
}
}
13 changes: 13 additions & 0 deletions test/features/settings/preferences_appearance_section_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,18 @@ void main() {

expect(ThemeController.instance.themeAnimationEnabled, isTrue);
});

testWidgets('does not wrap body in inner SingleChildScrollView (#1650)',
(tester) async {
await pumpSection(tester);

expect(
find.descendant(
of: find.byType(PreferencesAppearanceSection),
matching: find.byType(material.SingleChildScrollView),
),
findsNothing,
);
});
});
}
Loading