Set buttons row width to min

This commit is contained in:
Ankit Mahato
2023-04-25 15:51:18 +05:30
parent 5835a44e47
commit 1d884cd910

View File

@ -23,6 +23,7 @@ class _CopyButtonState extends State<CopyButton> {
sm.showSnackBar(getSnackBar("Copied")); sm.showSnackBar(getSnackBar("Copied"));
}, },
child: Row( child: Row(
mainAxisSize: MainAxisSize.min,
children: const [ children: const [
Icon( Icon(
Icons.content_copy, Icons.content_copy,
@ -63,6 +64,7 @@ class _SendRequestButtonState extends State<SendRequestButton> {
return FilledButton( return FilledButton(
onPressed: disable ? null : widget.onTap, onPressed: disable ? null : widget.onTap,
child: Row( child: Row(
mainAxisSize: MainAxisSize.min,
children: [ children: [
Text( Text(
disable disable
@ -129,6 +131,7 @@ class _SaveInDownloadsButtonState extends State<SaveInDownloadsButton> {
} }
: null, : null,
child: Row( child: Row(
mainAxisSize: MainAxisSize.min,
children: const [ children: const [
Icon( Icon(
Icons.download, Icons.download,