0
當我的內容超出屏幕時,如何在Flutter上擺脫突出顯示的繁文?節?它可能與調試模式有關,因爲我沒有在發行版上看到它,但如果沒有它,仍然可以在調試模式下運行我的構建版本。在Flutter上擺脫突出顯示的紅色條紋
編輯:這是一個將溢出的實現的例子:
class OverflowExample extends StatefulWidget {
@override
State createState() {
return new OverflowExampleState();
}
}
class OverflowExampleState extends State<OverflowExample> {
@override
Widget build(BuildContext context) {
return new Row(
children: [
new column(
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
),
new column(
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
),
new column(
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
),
new column(
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
),
new column(
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
new Container(height: 100, width: 200),
),
]
)
}
}
呀我的計劃是讓它流上的目的,你可以通過手勢探測器看到的休息。 – user3217522
你能否提供一個代碼示例,我將告訴你如何更新它以明確處理溢出。 –
我發佈了一個例子 – user3217522