Skip to content

Commit 8fd792d

Browse files
committed
remove press listener on buttons when loading
1 parent ff6ec48 commit 8fd792d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/components/buttons/animated_piwigo_button.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ class AnimatedPiwigoButton extends StatelessWidget {
3737
borderRadius: 10.0,
3838
height: 56.0,
3939
width: constraints.maxWidth,
40-
onPressed: disabled ? () {} : onPressed,
40+
onPressed:
41+
controller.currentState == ButtonState.loading || disabled
42+
? () {}
43+
: onPressed,
4144
child: child ?? const SizedBox(),
4245
);
4346
}),

0 commit comments

Comments
 (0)