iampawan / VelocityX

A minimalist Flutter framework for rapidly building Flutter apps.
https://velocityx.dev
MIT License
1.43k stars 190 forks source link

VxDialog: confirmTextColor, cancelTextColor are ignored #165

Closed btraas closed 1 year ago

btraas commented 1 year ago

Describe the bug

Function parameters "confirmTextColor" and "cancelTextColor" for VxDialog.showAlert(), VxDialog.showConfirmation(), and VxDialog.showTicker() are unused and don't work as expected.

To Reproduce

Use VxDialog.showConfirmation() with confirmTextColor:

VxDialog.showConfirmation(context,
        title: "Commit changes?",
        content: "Are you sure?",
        onConfirmPress: (){},
        cancelBgColor: Colors.white,
        confirmBgColor: Colors.lightBlue,
        confirmTextColor: Colors.white
    );

Expected behavior White text on buttons with confirmTextColor: Colors.white