QuickAlert
QuickAlert copied to clipboard
headerBackgroundColor has no effect
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',
);
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