Skip to content

Commit 96da54c

Browse files
committed
fix(layouts): properly fill buttons with image decoration
1 parent e98f40a commit 96da54c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ui/lib/widgets/inputs/button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class _ButtonInputState extends State<ButtonInput> {
3838
child: Stack(
3939
children: [
4040
if (widget.image != null)
41-
Image(image: widget.image!, fit: BoxFit.cover, width: 75, height: 75),
41+
Positioned.fill(child: Image(image: widget.image!, fit: BoxFit.cover)),
4242
Container(
4343
margin: const EdgeInsets.all(4),
4444
decoration: ShapeDecoration(

0 commit comments

Comments
 (0)