merge: land flutter/motion
This commit is contained in:
@@ -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!),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user