diff --git a/lib/ui/screens/notifications_screen.dart b/lib/ui/screens/notifications_screen.dart index 4c8f74f..cab78a7 100644 --- a/lib/ui/screens/notifications_screen.dart +++ b/lib/ui/screens/notifications_screen.dart @@ -199,11 +199,7 @@ class _NotificationTile extends StatelessWidget { required this.usersList, required this.groupsList, required this.onDelete, - }) : assert(notification != null), - assert(usersList != null), - assert(groupsList != null), - assert(onDelete != null), - super(key: key); + }) : super(key: key); @override Widget build(BuildContext context) { diff --git a/lib/ui/screens/other_friends_lists_screen.dart b/lib/ui/screens/other_friends_lists_screen.dart index 71b0b9d..ca3286a 100644 --- a/lib/ui/screens/other_friends_lists_screen.dart +++ b/lib/ui/screens/other_friends_lists_screen.dart @@ -19,9 +19,7 @@ class OtherUserFriendsListScreen extends StatefulWidget { Key? key, required this.userID, this.enableAppBar = true, - }) : assert(userID != null), - assert(enableAppBar != null), - super(key: key); + }) : super(key: key); @override _OtherUserFriendsListScreenState createState() => diff --git a/lib/ui/screens/user_page_screen.dart b/lib/ui/screens/user_page_screen.dart index f1a0903..fa1a7b9 100644 --- a/lib/ui/screens/user_page_screen.dart +++ b/lib/ui/screens/user_page_screen.dart @@ -21,8 +21,7 @@ class UserPageScreen extends StatefulWidget { final int userID; const UserPageScreen({Key? key, required this.userID}) - : assert(userID != null), - super(key: key); + : super(key: key); @override _UserPageScreenState createState() => _UserPageScreenState(); diff --git a/lib/ui/tiles/accepted_friend_tile.dart b/lib/ui/tiles/accepted_friend_tile.dart index c00c3d0..7bd2aa1 100644 --- a/lib/ui/tiles/accepted_friend_tile.dart +++ b/lib/ui/tiles/accepted_friend_tile.dart @@ -82,8 +82,6 @@ class AcceptedFriendTile extends StatelessWidget { } void _selectedMenuOption(_FriendMenuChoices value) { - if (value == null) return; - switch (value) { // Open private conversation case _FriendMenuChoices.PRIVATE_CONVERSATION: diff --git a/lib/ui/widgets/conversation_image_widget.dart b/lib/ui/widgets/conversation_image_widget.dart index aa0affe..96f18a8 100644 --- a/lib/ui/widgets/conversation_image_widget.dart +++ b/lib/ui/widgets/conversation_image_widget.dart @@ -24,9 +24,7 @@ class ConversationImageWidget extends StatelessWidget { this.group, this.size = 30, this.noUserImage, - }) : assert(conversation != null), - assert(users != null), - assert(size > 0), + }) : assert(size > 0), super(key: key); @override diff --git a/lib/ui/widgets/custom_app_bar_size.dart b/lib/ui/widgets/custom_app_bar_size.dart index 65bea8a..185f8e9 100644 --- a/lib/ui/widgets/custom_app_bar_size.dart +++ b/lib/ui/widgets/custom_app_bar_size.dart @@ -10,9 +10,7 @@ class AppBarWrapper extends StatelessWidget implements PreferredSizeWidget { final double height; const AppBarWrapper({required this.height, required this.appBar}) - : assert(height != null), - assert(appBar != null), - super(); + : super(); @override Widget build(BuildContext context) => appBar;