feat(ui): add themed shell navigation
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user