Baseflow / Baseflow/XF-Material-Library

[Bug] System.InvalidOperationException: 'Invalid on Color.Default'

Open
#425 11 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
633
Forks
150
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug Report

I'm using a MaterialButton. The app is crazing in the init with the following code:
```
...
_materialButton.TextColor.MultiplyAlpha(0.38).ToAndroid()
...
```
Link file [here](https://github.com/Baseflow/XF-Material-Library/blob/e70ca0b8aaef0e069743bf92407cfa6ac320bfc2/XF.Material/Platforms/Android/Renderers/MaterialButtonRenderer.cs#L95
). More info [here](https://github.com/xamarin/Xamarin.Forms/issues/14173).

### Reproduction steps
I just add a material button and the app cant compile.

### Configuration

**Version:** 1.7.8

**Platform:**
- [ ] :iphone: iOS
- [x] :robot: Android
- [ ] :checkered_flag: WPF
- [ ] :earth_americas: UWP
- [ ] :apple: MacOS
- [ ] :tv: tvOS
- [x] :monkey: Xamarin.Forms

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.