QuickAlert icon indicating copy to clipboard operation
QuickAlert copied to clipboard

headerBackgroundColor has no effect

Open alaindeseine opened this issue 1 year ago • 1 comments

When using headerBackgroundColor property with QuickAlertType.confirm, it has no effect, header stil remain green.

Reproduce with your own example :

    final confirmAlert = buildButton(
      onTap: () {
        QuickAlert.show(
          onCancelBtnTap: () {
            Navigator.pop(context);
          },
          context: context,
          type: QuickAlertType.confirm,
          text: 'Do you want to logout',
          titleAlignment: TextAlign.right,
          textAlignment: TextAlign.right,
          confirmBtnText: 'Yes',
          cancelBtnText: 'No',
          confirmBtnColor: Colors.white,
          backgroundColor: Colors.black,
          headerBackgroundColor: Colors.grey,
          confirmBtnTextStyle: const TextStyle(
            color: Colors.black,
            fontWeight: FontWeight.bold,
          ),
          barrierColor: Colors.white,
          titleColor: Colors.white,
          textColor: Colors.white,
        );
      },
      title: 'Confirm',
      text: 'Do you want to logout',
      leadingImage: 'assets/confirm.gif',
    );

image

alaindeseine avatar Oct 06 '24 09:10 alaindeseine

yes because the part above is a GIF unfortunately... You cannot change the colour. that's a limitation of that library. I guess the only option is to fork it and build the little part above as you want

jaybe78 avatar May 27 '25 11:05 jaybe78