attempt to add loco search indicator
All checks were successful
All checks were successful
This commit is contained in:
@@ -628,8 +628,7 @@ class _TimelineModel {
|
|||||||
for (int i = 0; i < boundaries.length - 1; i++) {
|
for (int i = 0; i < boundaries.length - 1; i++) {
|
||||||
final start = boundaries[i];
|
final start = boundaries[i];
|
||||||
final end = boundaries[i + 1];
|
final end = boundaries[i + 1];
|
||||||
final days = end.difference(start).inDays;
|
final width = yearWidth;
|
||||||
final width = days >= 365 ? yearWidth : yearWidth / 2;
|
|
||||||
final double offset = axisSegments.isEmpty
|
final double offset = axisSegments.isEmpty
|
||||||
? 0.0
|
? 0.0
|
||||||
: axisSegments.last.offset + axisSegments.last.width;
|
: axisSegments.last.offset + axisSegments.last.width;
|
||||||
|
|||||||
@@ -423,12 +423,12 @@ class _TractionPageState extends State<TractionPage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
|
Stack(
|
||||||
|
children: [
|
||||||
if (data.isTractionLoading && traction.isEmpty)
|
if (data.isTractionLoading && traction.isEmpty)
|
||||||
const Center(
|
const Padding(
|
||||||
child: Padding(
|
padding: EdgeInsets.symmetric(vertical: 32.0),
|
||||||
padding: EdgeInsets.symmetric(vertical: 24.0),
|
child: Center(child: CircularProgressIndicator()),
|
||||||
child: CircularProgressIndicator(),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
else if (traction.isEmpty)
|
else if (traction.isEmpty)
|
||||||
Card(
|
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()),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user