Как сделать генерацию текста без прокрутки - PullRequest
1 голос
/ 27 мая 2020

Я пытаюсь создать текст в виде текста («500g de aveia»). Я не хочу создавать свиток. Есть виджет, который может это сделать ??? Данные будут перенесены из firebase массивом

введите описание изображения здесь

 import 'package:flutter/material.dart';

class BoxIngredientes extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        Container(
          height: 100,
          child: ListView.builder(
            padding: EdgeInsets.symmetric(horizontal: 15),
            itemCount: 3,
            itemBuilder: (BuildContext context, int index) {
              return Container(
                margin: EdgeInsets.only(
                  top: 5,
                  bottom: 5,
                ),
                child: Row(
                  children: <Widget>[
                    Icon(
                      Icons.supervised_user_circle, // trocar esse icon depois
                      size: 22,
                    ),
                    Container(
                      margin: EdgeInsets.only(
                        left: 10,
                      ),
                      child: Text("500g de aveia"), 
                    )
                  ],
                ),
              );
            },
          ),
        ),
      ],
    );
  }
}
...