diff --git a/lib/app/views/screens/chat/chat_page.dart b/lib/app/views/screens/chat/chat_page.dart index 47de299..5d47d41 100644 --- a/lib/app/views/screens/chat/chat_page.dart +++ b/lib/app/views/screens/chat/chat_page.dart @@ -10,7 +10,6 @@ import 'package:iiitd_mentorship/app/views/widgets/custom_textbox.dart'; import 'package:iiitd_mentorship/app/views/widgets/message_tile.dart'; import 'package:intl/intl.dart'; - class ChatPage extends StatefulWidget { const ChatPage( {super.key, this.chatConversation, this.receiverUser, this.receiverId}); @@ -270,7 +269,7 @@ class _ChatPageState extends State { var isMe = message.senderId == currentUser!.uid; return InkWell( - onLongPress: (){ + onLongPress: () { Clipboard.setData(ClipboardData(text: message.message)); }, child: MessageTile( @@ -301,13 +300,12 @@ class _ChatPageState extends State { // send Icon button IconButton( - icon: const Icon(Icons.send), - onPressed: (){ - if (_messageController.text.isNotEmpty) { - sendMessage(); - } - } - ), + icon: const Icon(Icons.send), + onPressed: () { + if (_messageController.text.isNotEmpty) { + sendMessage(); + } + }), ], ), ), diff --git a/lib/app/views/screens/home/home.dart b/lib/app/views/screens/home/home.dart index 06990c4..e4f162a 100644 --- a/lib/app/views/screens/home/home.dart +++ b/lib/app/views/screens/home/home.dart @@ -172,7 +172,8 @@ class _MyHomePageState extends State { }) .toList() .where((element) { - return element.uid != currentUser!.uid && element.adminApproval!; + return element.uid != currentUser!.uid && + element.adminApproval!; }) .toList(); diff --git a/lib/app/views/screens/profile/user_profile.dart b/lib/app/views/screens/profile/user_profile.dart index 3eb64f7..5930630 100644 --- a/lib/app/views/screens/profile/user_profile.dart +++ b/lib/app/views/screens/profile/user_profile.dart @@ -21,13 +21,12 @@ class _UserProfileScreenState extends State { SliverAppBar( expandedHeight: 200, flexibleSpace: FlexibleSpaceBar( - title: Text( - widget.user.name!, - style: const TextStyle( - fontWeight: FontWeight.bold, - + title: Text( + widget.user.name!, + style: const TextStyle( + fontWeight: FontWeight.bold, + ), ), - ), background: Image.network( (widget.user.photoUrl == null || widget.user.photoUrl!.isEmpty) ? 'https://images.unsplash.com/photo-1531384441138-2736e62e0919?auto=format&fit=crop&q=80&w=1587&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D' @@ -37,7 +36,6 @@ class _UserProfileScreenState extends State { ), floating: true, pinned: true, - actions: [ IconButton( onPressed: () { @@ -207,16 +205,16 @@ class _UserProfileScreenState extends State { Wrap( spacing: 8, runSpacing: 8, - children: - (widget.user.topics != null || widget.user.topics!.isNotEmpty)? - widget.user.topics! - .map( - (interest) => Chip( - label: Text(interest), - ), - ) - .toList() : [const Text("No topics selected")], - + children: (widget.user.topics != null || + widget.user.topics!.isNotEmpty) + ? widget.user.topics! + .map( + (interest) => Chip( + label: Text(interest), + ), + ) + .toList() + : [const Text("No topics selected")], ), ], ),