Hello,
Referring to the official API documentation Toast, you could find there is no such a property or method to change the color of text or background.
It's recommended to use Snackbar to show an alert with custom color of text and background.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.