Open cris-m opened 3 weeks ago
Hi, seems you're reporting more than one issue. 1) Do you want to initialize the entry with a custom text? if so, have you tried to use the Text("...") method on the entry?
2) Can you show the code that causes the exception CollectionView inside a BottomSheet?
If I put customer text
, IsFilled
or IsFocused
will be initially to false
. I wanted to add initially hasError
property to the entry which can be control by a boolean state but I initialize as following:
state.Set(s => (s.IsFocused = true, s.IsFilled = true, s.HasError = hasError)); // hasError is parameter pass to the controller function
This create a conflict when I rendered the entry controller on The49 bottom sheet. The entry is rendered twice.
Can you please create a small repro project that shows the problem?
How can I initialize the following component with text. Before render there is default text in the
Entry
I try to initialize It like this
state.Set(s => (s.IsFocused = true, s.IsFilled = true));
but the component is render twice on the view in third party component likeBottomSheet
. If theBottomSheet
contains aCollectionView
, the app will throw an the following exception: