Transform Layer is constructed with an invalid matrix #1855
-
QuestionWhen I add an instance of the Sec class to the page, I get this error. Why is this happening and how can it be fixed? Code samplefrom flet import (
Row,
Column,
Container,
Text,
UserControl,
border_radius,
colors,
icons,
Icon,
IconButton,
ImageFit,
alignment,
Tabs, Tab,
AlertDialog,
TextField,
InputBorder,
TextButton,
MainAxisAlignment,
Page,
app
)
class Sec(UserControl):
def build(self):
self.tabs = Tabs(
animation_duration=300,
selected_index=0,
tabs=[
Tab(text="STORAGE", content=Container(bgcolor='red')),
Tab(text="FILE", content=Container(bgcolor='blue')),
],
expand=1,
)
return self.tabs
def main(page: Page):
tol = Sec()
page.add(tol)
app(target=main) Error message[ERROR:flutter/flow/layers/transform_layer.cc(24)] TransformLayer is constructed with an invalid matrix.
[ERROR:flutter/flow/layers/transform_layer.cc(24)] TransformLayer is constructed with an invalid matrix. ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
FeodorFitsner
Sep 19, 2023
Replies: 1 comment 5 replies
-
What OS is that? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK, found the issue! User control itself must be expanded (
self.expand = True
):I have to admit the error is misleading.