This commit is contained in:
nyne
2024-10-05 22:07:34 +08:00
parent 771feeeaa8
commit 3a0fbee7bc
5 changed files with 441 additions and 15 deletions

View File

@@ -195,6 +195,9 @@ class _ButtonState extends State<Button> {
child: AnimatedContainer(
duration: const Duration(milliseconds: 160),
padding: padding,
constraints: const BoxConstraints(
minWidth: 76,
),
decoration: BoxDecoration(
color: buttonColor,
borderRadius: BorderRadius.circular(16),
@@ -220,7 +223,10 @@ class _ButtonState extends State<Button> {
child: SizedBox(
width: width,
height: height,
child: child,
child: Center(
widthFactor: 1,
child: child,
),
),
),
),