feat(app): left/right arrows step through artifacts and changed files

This commit is contained in:
2026-10-23 22:34:11 +01:00
parent 0defe42ac1
commit f81957cd73
4 changed files with 92 additions and 7 deletions
@@ -1,3 +1,4 @@
import '../../../ui/input/arrow_key_pager.dart';
import 'dart:async';
import 'package:flutter/cupertino.dart';
@@ -287,12 +288,17 @@ class _FileDiffPageState extends State<FileDiffPage> {
onPrevious: _index > 0 ? () => _step(-1) : null,
onNext: _index < count - 1 ? () => _step(1) : null,
);
final body = Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Expanded(child: viewer),
?pager,
],
// Left/right arrows step between changed files, like the chevrons.
final body = ArrowKeyPager(
onPrevious: _index > 0 ? () => _step(-1) : null,
onNext: _index < count - 1 ? () => _step(1) : null,
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Expanded(child: viewer),
?pager,
],
),
);
if (cupertino) {
return CupertinoPageScaffold(