Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
421 views
in Technique[技术] by (71.8m points)

android - I'm testing comments on my Flutter App. Application shows yellow bar when comment is too many characters to the right 175 pixels to the right


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can try with this.

                  Row(
                    children: [
                      Expanded(
                        child: Text(
                          commentdoc['username'],
                          style: mystyle(20),
                        ),
                        flex: 1,
                      ),
                      SizedBox(
                        width: 15.0,
                      ),
                      Expanded(
                        child: Text(
                          commentdoc['comment'],
                          style: mystyle(20, Colors.grey, FontWeight.w500),
                        ),
                        flex: 2,
                      )
                    ],
                  ),

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...