Templates: shared list rows, named detail bar, compact create, 720 cap

This commit is contained in:
2026-10-31 05:20:00 +00:00
parent 06f6eda360
commit d49ab0667b
8 changed files with 275 additions and 130 deletions
@@ -13,7 +13,7 @@ import 'templates_wiring_test.dart' show openSettings, openTemplates, pumpApp;
/// The app-level Templates page: one bar (Back + Refresh), the gallery and an
/// open template reach the top edge, start below the bar at rest and scroll
/// behind it. Cupertino draws inset-grouped rows on the grouped background.
/// behind it. Both hosts draw the shared list rows on the page background.
void main() {
for (final cupertino in [false, true]) {
final host = cupertino ? 'Cupertino' : 'Material';
@@ -69,13 +69,14 @@ void main() {
)
.first,
);
expect(scaffold.backgroundColor, AppColors.groupedBackground);
// Plain shared rows on the page background, like the other lists.
expect(scaffold.backgroundColor, AppColors.background);
expect(
find.descendant(
of: gallery,
matching: find.byType(CupertinoListSection),
),
findsOneWidget,
findsNothing,
);
}