简体   繁体   中英

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

I need to implement such a widget<\/a> in Flutter. Full version of the page, where this widget is going to be used is here<\/a> Maybe you know build-in widgets, which could help me. But if there are none, what is the best way to implement this widget?

"

You can use a ListTile

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

Alternatively you can use:

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
    ],
  ),
),

You can choose whichever approach works best for your app

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM