Skip to content
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

[Bug] maxLines is not exist in type TextProps #79

Open
jgwng opened this issue Oct 2, 2024 · 1 comment
Open

[Bug] maxLines is not exist in type TextProps #79

jgwng opened this issue Oct 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jgwng
Copy link

jgwng commented Oct 2, 2024

I just follow the steps in documentation and making an page with using the flitter.
However i want to adjust "maxLines" in text under the below element

<Widget
		width="375px"
		height="inherit"
		renderer="svg"
		widget={
				 Container({
						width:375,
						padding:EdgeInsets.all(16),
						margin: EdgeInsets.symmetric({horizontal: 16,vertical: 12}),
						decoration: new BoxDecoration({
							color: "rgb(247,248,249,1.0)",
							borderRadius: BorderRadius.circular(16),
						}),
						child: Text("a\nb\nc\nd", {
							overflow: TextOverflow.ellipsis,
							maxLines: 1,
							style: new TextStyle({
								inherit: true,
								color: "rgb(27,29,31,1.0)",
								fontSize: 14,fontFamily:'PretendardVariable' }),
						})
				})
			}
/> 

스크린샷 2024-10-02 오후 3 23 54

However, when i write the code like this i got
"Object literal may only specify known properties, and 'maxLines' does not exist in type 'TextProps'.

How should i modify the code?

Also can i set the "Widget" element height dynamically? I want to set the height same as the element height
However If i don't set the element height in Widget, It sets the height to 300px So I have some unnecessary white space

@Moon-DaeSeung
Copy link
Contributor

thank you for issuing.

I think text have some type issue. so I will fix it

and you can set height on or

@Moon-DaeSeung Moon-DaeSeung added the bug Something isn't working label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants