flushbar icon indicating copy to clipboard operation
flushbar copied to clipboard

shouldIconPulse should be false by default.

Open vanlooverenkoen opened this issue 4 years ago • 1 comments

Should icon pulse is a very specific behaviour. That is something that should be set to false by default. And only when needed it should be set to true by the developer.

    final flushBar = Flushbar(
      flushbarPosition: FlushbarPosition.TOP,
      flushbarStyle: FlushbarStyle.GROUNDED,
      duration: Duration(seconds:1),
      animationDuration: Duration(seconds:1),
      backgroundColor: ThemeColors.black,
      icon: Icon(
        Icons.check,
        color: Colors.white,
      ),
      shouldIconPulse: false,
      messageText: Text(
        message,
        style: ThemeTextStyles.flushBarStyle,
      ),
    );

vanlooverenkoen avatar Apr 28 '20 11:04 vanlooverenkoen

It seems that shouldIconPulse: false doesn't work in FlushbarHelper.

rt234cw avatar Oct 19 '23 19:10 rt234cw