UnityTech / UIWidgets

UIWidget is a Unity Package which helps developers to create, debug and deploy efficient, cross-platform Apps.
Other
1.97k stars 256 forks source link

The game view is not displayed properly #433

Open DuGlaser opened 4 years ago

DuGlaser commented 4 years ago

When I write code like the one above, the game view may be broken.

body: new Container(
    child: new Column(
        children: new List<Widget>{
            new Column(
                children: new List<Widget>{
                    new Container(
                        padding: EdgeInsets.fromLTRB(deviseSize.width * .03f, deviseSize.height * .03f, deviseSize.width * .03f, deviseSize.height * .01f),
                        width: deviseSize.width,
                        color: Colors.black12,
                        child: new Text(
                            "samplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesample"
                        )
                    ),
                    new Container(
                        padding: EdgeInsets.fromLTRB(deviseSize.width * .03f, deviseSize.height * .03f, deviseSize.width * .03f, deviseSize.height * .01f),
                        width: deviseSize.width,
                        color: Colors.white,
                        child: new Text(
                            "samplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesample"
                        )
                    ),
                }
            ),
            new Column(
                children: new List<Widget>{
                    new Container(
                        padding: EdgeInsets.fromLTRB(deviseSize.width * .03f, deviseSize.height * .03f, deviseSize.width * .03f, deviseSize.height * .01f),
                        width: deviseSize.width,
                        color: Colors.black12,
                        child: new Text(
                            "samplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesample"
                        )
                    ),
                    new Container(
                        padding: EdgeInsets.fromLTRB(deviseSize.width * .03f, deviseSize.height * .03f, deviseSize.width * .03f, deviseSize.height * .01f),
                        width: deviseSize.width,
                        color: Colors.white,
                        child: new Text(
                            "samplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesample"
                        )
                    ),
                }
            ),
        }
    )
)

normalcy

スクリーンショット 2020-07-18 21 36 14

anomaly

スクリーンショット 2020-07-18 20 39 39

My environment

reappearance

I've created a sample repository. Try it here!

https://github.com/DuGlaser/UnityUIWidgetBugSample