merge: land flutter/motion

This commit is contained in:
2026-10-23 22:09:46 +01:00
9 changed files with 313 additions and 44 deletions
+13 -1
View File
@@ -1,3 +1,4 @@
import '../../../ui/motion/motion.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@@ -128,6 +129,14 @@ class RunsList extends StatelessWidget {
entries.add((label: group.label, run: null));
entries.addAll(group.runs.map((run) => (label: null, run: run)));
}
// Runs that start while the list is open enter with a short fade.
return ArrivalScope(
ids: [for (final run in controller.visibleRuns) '${run['id']}'],
child: _entriesList(entries),
);
}
Widget _entriesList(List<({String? label, JsonMap? run})> entries) {
return ListView.builder(
itemCount: entries.length,
itemBuilder: (context, index) {
@@ -141,7 +150,10 @@ class RunsList extends StatelessWidget {
child: Semantics(header: true, child: Text(label, style: style)),
);
}
return _runTile(context, entry.run!);
return Arrival(
id: '${entry.run!['id']}',
child: _runTile(context, entry.run!),
);
},
);
}