簡體   English   中英

"顫振中有一個小部件可以讓您創建這樣的視圖嗎?"

[英]Is there a widget in flutter that allows you to create such a view?

您可以使用 ListTile

ListTile(
  leading: const Text("Lbikgabsb"),
  trailing: Column( 
    children: [
       const Text("900 P"),
       const Text("2"), // add your decoration to the background 
    ),
   ],
 ),
),

或者,您可以使用:

SizedBox(
  height: your_height,
  width:double.infinity,
  child: Row(
    children:[
      Text("Lbikgabsb"),
      Column( 
        children: [
           const Text("900 P"),
           const Text("2"), // add your decoration to the background
    ],
  ),
),

您可以選擇最適合您的應用的方法

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM