feat(ui): add themed shell navigation

This commit is contained in:
2026-04-23 21:57:24 +02:00
parent bf67e9c2ae
commit 8cf6e95474
14 changed files with 531 additions and 122 deletions

View File

@ -12,7 +12,7 @@ class HorizontalScanningAnimation extends StatefulWidget {
this.height = 50.0,
});
@override
_HorizontalScanningAnimationState createState() =>
State<HorizontalScanningAnimation> createState() =>
_HorizontalScanningAnimationState();
}
@ -117,8 +117,6 @@ class _HorizontalWavePainter extends CustomPainter {
double currentWidth =
width * easedProgress * 0.8; // Max 80% width expansion
double startX = (width / 2) - (currentWidth / 2);
double endX = (width / 2) + (currentWidth / 2);
// Calculate opacity based on progress (fade in and out)
double opacity;
if (waveProgress < 0.1) {
@ -130,8 +128,9 @@ class _HorizontalWavePainter extends CustomPainter {
}
opacity = max(0.0, opacity); // Clamp opacity
if (opacity <= 0.0 || currentWidth < 5)
continue; // Skip drawing if invisible or too small
if (opacity <= 0.0 || currentWidth < 5) {
continue;
}
// Create the wave path
final path = Path();