Flutter uygulamamda yorum yapamıyorum

Stack yerine Column kullanın . CrossAxisAlignment’ı start olarak ayarlayın.
Böyle oldu bunu nasl yapacağım?

a.PNG
 
Kod:
class ImagesYorumlar extends StatefulWidget {
  bool click = false;
  String name;
  ImagesYorumlar({required this.name});
  _ImagesYorumlarState createState() => _ImagesYorumlarState();
}

class _ImagesYorumlarState extends State<ImagesYorumlar> {
  bool click = false;
  Color _favIconColor = Colors.grey;
  Color _comIconColor = Colors.grey;
  Color _bookColor = Colors.grey;
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Yorumlar(),
      ),
    );
  }
}

class Yorumlar extends StatefulWidget {
  const Yorumlar({Key? key}) : super(key: key);
  _YorumlarState createState() => _YorumlarState();
}

class _YorumlarState extends State<Yorumlar> {
  TextEditingController t1 = TextEditingController();

  List mesajListesi = [];

  listeyeMesajEkle(String metin) {
    if (metin.isEmpty) {
      return "Boş kalamaz";
    } else {
      setState(() {
        mesajListesi.insert(0, metin);
        t1.clear();
      });
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        home: Scaffold(
          body: Container(
              child: Column(children: [
            SizedBox(height: 5),
            Row(children: [
              SizedBox(
                width: 300,
                child: TextField(
                  onSubmitted: listeyeMesajEkle,
                  controller: t1,
                  decoration: new InputDecoration(
                    labelText: "Yorum Ekle...",
                    fillColor: Colors.black,
                    border: new OutlineInputBorder(
                      borderRadius: new BorderRadius.circular(25.0),
                      borderSide: new BorderSide(),
                    ),
                  ),
                ),
              ),
              IconButton(
                  icon: Icon(Icons.send, color: Colors.blue),
                  onPressed: () {
                    listeyeMesajEkle(t1.text);
                  }),
            ]),
            Flexible(
              child: ListView.builder(
                reverse: true,
                itemCount: mesajListesi.length,
                itemBuilder: (context, int indeksNumarasi) => Container(
                  child: Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      Padding(
                          padding: EdgeInsets.fromLTRB(10, 0, 0, 0),
                          child: Row(
                            children: [
                              //Profile Photo
                              Container(
                                width: 40,
                                height: 40,
                                decoration: BoxDecoration(
                                  color: Colors.grey[300],
                                  shape: BoxShape.circle,
                                ),
                                child: Column(
                                  children: [
                                    Container(
                                      width: 40,
                                      height: 40,
                                      decoration: BoxDecoration(
                                        border: Border.all(width: 4, color: Theme.of(context).scaffoldBackgroundColor),
                                        boxShadow: [
                                          BoxShadow(
                                            spreadRadius: 2,
                                            blurRadius: 10,
                                            color: Colors.black.withOpacity(0.1),
                                          ),
                                        ],
                                        shape: BoxShape.circle,
                                      ),
                                      child: GestureDetector(onTap: () {}),
                                    ),
                                  ],
                                ),
                              ),
                              SizedBox(width: 10),
                              InkWell(
                                child: FlatButton(
                                    child: Text("asdasd",
                                        style: TextStyle(
                                          fontWeight: FontWeight.bold,
                                        )),
                                    onPressed: () {}),
                              ),
                            ],
                          )),
                      //Yazı alanı
                      Container(
                        padding: EdgeInsets.fromLTRB(20, 10, 0, 10),
                        child: Wrap(
                          children: [
                            Text(mesajListesi[indeksNumarasi], textAlign: TextAlign.end, style: TextStyle(color: Colors.black, fontSize: 20)),
                          ],
                        ),
                      ),

                      //İkonlar
                      Container(
                          padding: EdgeInsets.only(left: 20, bottom: 5, right: 0, top: 0),
                          child: Row(children: [
                            IconButton(
                              icon: Icon(Icons.favorite),
                              color: Colors.grey,
                              tooltip: 'Add to favorite',
                              onPressed: () {
                                setState(() {});
                              },
                            ),
                            SizedBox(width: 5),
                            FlatButton(
                              child: Icon(Icons.question_answer, color: Colors.grey),
                              onPressed: () {},
                            ),
                          ]))
                    ],
                  ),
                ),
              ),
            ),
          ])),
        ));
  }
}
 

Geri
Yukarı