-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
🐛 Null check operator used on a null value When using Combobox #46
Comments
Are you using the |
Oh my god... I thought it was just a non-essential component about setting style. It works well after using Maybe documention should emphasize using it😂 |
Almost every widget provided by this lib uses |
@bdlukaa Am mixing Material with Fluent be able to use some of the components in fluent. i have wrapped them with FluentTheme. but i still get this error ```The following _CastError was thrown building _TooltipOverlay(dirty):
fluent.FluentTheme(
|
@ntwarijoshua I need more info about your issue! What version are you using? Can you share a reproducible snippet? |
Describe the bug
Here is exception
======== Exception caught by widgets library =======================================================
The following _CastError was thrown building Combobox(dirty, dependencies: [MediaQuery], state: _ComboboxState#57f33):
Null check operator used on a null value
The relevant error-causing widget was:
Combobox file:///C:/Users/FengChendian/Documents/Code/Android/serialport_tool/lib/UI_components/title_combo_menu.dart:81:28
When the exception was thrown, this was the stack:
#0 FluentTheme.of (package:fluent_ui/src/styles/theme.dart:25:70)
#1 _ComboboxState._textStyle (package:fluent_ui/src/controls/form/combo_box.dart:1181:35)
#2 _ComboboxState.build (package:fluent_ui/src/controls/form/combo_box.dart:1320:13)
#3 StatefulElement.build (package:flutter/src/widgets/framework.dart:4691:27)
#4 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4574:15)
====================================================================================================
If I replace Combobox by dropdownButton, excetion will disappear.
My code is :
In FluentTheme.of (package:fluent_ui/src/styles/theme.dart:25:70), I found error code:
The text was updated successfully, but these errors were encountered: