-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.NullReferenceException: MaterialLabel with TypeScale #67
Comments
insert in App.xaml Resource and add fonts per/Platform |
Describe the bug
If you use the default Material.Configuration and add a MaterialLabel with TypeScale to a Page a System.NullReferenceException is thrown.
To Reproduce
Steps to reproduce the behavior:
XF.Material.Forms.Material.Init(this);
(without MaterialConfiguration)Expected behavior
Use MaterialLabel with default system Fonts
Smartphone:
Additional context
Stacktrace:
" at XF.Material.Forms.UI.MaterialLabel.OnTypeScaleChanged (XF.Material.Forms.Resources.Typography.MaterialTypeScale materialTypeScale) [0x0005f] in /Users/vsts/agent/2.146.0/work/1/s/XF.Material/XF.Material.Forms/UI/MaterialLabel.cs:94 \n at XF.Material.Forms.UI.MaterialLabel.OnPropertyChanged (System.String propertyName) [0x00014] in /Users/vsts/agent/2.146.0/work/1/s/XF.Material/XF.Material.Forms/UI/MaterialLabel.cs:56 \n at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00114] in D:\\a\\1\\s\\Xamarin.Forms.Core\\BindableObject.cs:622 \n at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in D:\\a\\1\\s\\Xamarin.Forms.Core\\BindableObject.cs:422 \n at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0003d] in D:\\a\\1\\s\\Xamarin.Forms.Core\\BindableObject.cs:572 \n at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\BindableObject.cs:122 \n at MaterialUX.MainPage.InitializeComponent () [0x00012]..."
The text was updated successfully, but these errors were encountered: