attempt to add loco search indicator
All checks were successful
Release / meta (push) Successful in 12s
Release / linux-build (push) Successful in 6m46s
Release / android-build (push) Successful in 15m22s
Release / release-master (push) Successful in 21s
Release / release-dev (push) Successful in 23s

This commit is contained in:
2025-12-16 12:47:52 +00:00
parent 2b4d2623fc
commit 411e82807b
2 changed files with 61 additions and 51 deletions

View File

@@ -628,8 +628,7 @@ class _TimelineModel {
for (int i = 0; i < boundaries.length - 1; i++) {
final start = boundaries[i];
final end = boundaries[i + 1];
final days = end.difference(start).inDays;
final width = days >= 365 ? yearWidth : yearWidth / 2;
final width = yearWidth;
final double offset = axisSegments.isEmpty
? 0.0
: axisSegments.last.offset + axisSegments.last.width;

View File

@@ -423,12 +423,12 @@ class _TractionPageState extends State<TractionPage> {
),
),
const SizedBox(height: 12),
Stack(
children: [
if (data.isTractionLoading && traction.isEmpty)
const Center(
child: Padding(
padding: EdgeInsets.symmetric(vertical: 24.0),
child: CircularProgressIndicator(),
),
const Padding(
padding: EdgeInsets.symmetric(vertical: 32.0),
child: Center(child: CircularProgressIndicator()),
)
else if (traction.isEmpty)
Card(
@@ -474,6 +474,17 @@ class _TractionPageState extends State<TractionPage> {
),
],
),
if (data.isTractionLoading)
Positioned.fill(
child: IgnorePointer(
child: Container(
color: Theme.of(context).colorScheme.surface.withOpacity(0.6),
child: const Center(child: CircularProgressIndicator()),
),
),
),
],
),
],
),
);