Selaa lähdekoodia

fix: handle big font sizes

Léo Salé 3 vuotta sitten
vanhempi
sitoutus
d428486ffb
1 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 6 3
      app/lib/friends/widgets/friends_list.dart

+ 6 - 3
app/lib/friends/widgets/friends_list.dart

@@ -13,7 +13,6 @@ class FriendsList extends StatefulWidget {
 }
 
 class _FriendsListState extends State<FriendsList> {
-
   void _shareLocation(String friendId) async {
     try {
       await ChallengeLocationService.shareChallengeLocation(friendId);
@@ -58,8 +57,12 @@ class _FriendsListState extends State<FriendsList> {
   Widget _friendTile(Friend friend) {
     return Card(
       child: ListTile(
-        title: Text("${friend.name} ${friend.surname}"),
-        trailing: TextButton(
+        title: Text(
+          "${friend.name} ${friend.surname}",
+          textAlign: TextAlign.center,
+          style: const TextStyle(fontSize: 18),
+        ),
+        subtitle: TextButton(
           child: const Text("Share challenge location"),
           onPressed: () => _shareLocation(friend.id),
         ),