简体   繁体   中英

Flutter | I want add widget in left side how?

在此处输入图片说明

im making a app using flutter how do I add a another Text widget in left side (Im new to Flutter)

Use Row Widget.

  Row(  
    mainAxisAlignment: MainAxisAlignment.spaceAround,
  children: [
    Text('Hello Flutter'),

    const Icon(
      Icons.schedule,
      size: 18,
      color: Colors.white54,
    ),
    const SizedBox(
      width: 4,
    ),
    const Text(
      ' min',
      style: TextStyle(
        fontSize: 11,
        color:  Color(0xfff1f1f1),
        fontWeight: FontWeight.w700,
      ),
    ),
  ],
);

Try below answer hope its helpful to you. you can used ListTile and Row Widget refer ListTile here and Row here

Using ListTile

ListTile(
  leading: CircleAvatar(),
  title: Text(
    'Make a word using letter  \'a\'',
  ),
),

Your Result Screen using ListTile -> 使用 ListTile

Using Row

Row(
  mainAxisAlignment: MainAxisAlignment.spaceAround,
  children: [
    CircleAvatar(),
    Text(
      'Make a word using letter  \'a\' ',
    ),
  ],
),   

Your result screen using Row-> 使用行

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