Fix: Rendering Overflow
parent
a3705aab95
commit
00e3ae0ac2
|
@ -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 {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue