idle
This commit is contained in:
@@ -316,6 +316,7 @@ class _PublicFileViewerState extends State<PublicFileViewer> {
|
||||
child: ModernGlassButton(
|
||||
onPressed: _downloadFile,
|
||||
padding: EdgeInsets.zero,
|
||||
showShadows: false,
|
||||
child: SizedBox(
|
||||
width: 104,
|
||||
child: const Center(child: Icon(Icons.download, size: 26)),
|
||||
|
||||
@@ -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,6 +65,7 @@ class _ModernGlassButtonState extends State<ModernGlassButton>
|
||||
child: Stack(
|
||||
children: [
|
||||
// Shadow layer
|
||||
if (widget.showShadows)
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
|
||||
Reference in New Issue
Block a user