Refactor download button: adjust size and padding for improved layout
This commit is contained in:
@@ -330,10 +330,10 @@ class _PublicFileViewerState extends State<PublicFileViewer> {
|
|||||||
leading: _fileData != null
|
leading: _fileData != null
|
||||||
? Padding(
|
? Padding(
|
||||||
padding: const EdgeInsets.only(left: 16, top: 4),
|
padding: const EdgeInsets.only(left: 16, top: 4),
|
||||||
child: SizedBox(
|
|
||||||
width: 104,
|
|
||||||
child: ModernGlassButton(
|
child: ModernGlassButton(
|
||||||
onPressed: _downloadFile,
|
onPressed: _downloadFile,
|
||||||
|
child: SizedBox(
|
||||||
|
width: 80,
|
||||||
child: const Center(child: Icon(Icons.download, size: 24)),
|
child: const Center(child: Icon(Icons.download, size: 24)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user