Fix: Rendering Overflow

master
Rafael 2024-07-12 22:55:41 +02:00
parent a3705aab95
commit 00e3ae0ac2
2 changed files with 63 additions and 51 deletions

View File

@ -24,6 +24,7 @@ class MatchedScreen extends StatelessWidget {
appBar: AppBar(title: const Text('It\'s a Match!')), appBar: AppBar(title: const Text('It\'s a Match!')),
body: Padding( body: Padding(
padding: const EdgeInsets.all(16.0), padding: const EdgeInsets.all(16.0),
child: SingleChildScrollView(
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
@ -76,6 +77,7 @@ class MatchedScreen extends StatelessWidget {
], ],
), ),
), ),
),
); );
} }
} }

View File

@ -101,7 +101,17 @@ class _ChatPageState extends State<ChatPage> {
} }
if (userPic != null) { if (userPic != null) {
chatHeader = Row( chatHeader = Row(
children: [userPic, const SizedBox(width: 7), Text(widget.chatTitle)], children: [
userPic,
const SizedBox(width: 7),
Flexible(
child: Text(
widget.chatTitle,
overflow: TextOverflow.ellipsis,
maxLines: 2,
),
),
],
); );
} }