diff --git a/b0esche_cloud/lib/pages/public_file_viewer.dart b/b0esche_cloud/lib/pages/public_file_viewer.dart index 7599431..7bf640d 100644 --- a/b0esche_cloud/lib/pages/public_file_viewer.dart +++ b/b0esche_cloud/lib/pages/public_file_viewer.dart @@ -316,6 +316,7 @@ class _PublicFileViewerState extends State { child: ModernGlassButton( onPressed: _downloadFile, padding: EdgeInsets.zero, + showShadows: false, child: SizedBox( width: 104, child: const Center(child: Icon(Icons.download, size: 26)), diff --git a/b0esche_cloud/lib/theme/modern_glass_button.dart b/b0esche_cloud/lib/theme/modern_glass_button.dart index 21eff13..ff971ce 100644 --- a/b0esche_cloud/lib/theme/modern_glass_button.dart +++ b/b0esche_cloud/lib/theme/modern_glass_button.dart @@ -7,12 +7,14 @@ class ModernGlassButton extends StatefulWidget { final Widget child; final bool isLoading; final EdgeInsets padding; + final bool showShadows; const ModernGlassButton({ required this.onPressed, required this.child, this.isLoading = false, this.padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 8), + this.showShadows = true, super.key, }); @@ -63,24 +65,25 @@ class _ModernGlassButtonState extends State child: Stack( children: [ // Shadow layer - Container( - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(12), - boxShadow: [ - BoxShadow( - color: AppTheme.accentColor.withValues(alpha: 0.3), - blurRadius: _isHovered ? 24 : 12, - spreadRadius: _isHovered ? 2 : 0, - offset: const Offset(0, 8), - ), - BoxShadow( - color: AppTheme.accentColor.withValues(alpha: 0.1), - blurRadius: 20, - spreadRadius: 5, - ), - ], + if (widget.showShadows) + Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(12), + boxShadow: [ + BoxShadow( + color: AppTheme.accentColor.withValues(alpha: 0.3), + blurRadius: _isHovered ? 24 : 12, + spreadRadius: _isHovered ? 2 : 0, + offset: const Offset(0, 8), + ), + BoxShadow( + color: AppTheme.accentColor.withValues(alpha: 0.1), + blurRadius: 20, + spreadRadius: 5, + ), + ], + ), ), - ), // Glass button with gradient ClipRRect( borderRadius: BorderRadius.circular(12),