1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-24 13:59:22 +00:00

Fix a few notices

This commit is contained in:
Pierre HUBERT 2022-03-11 16:41:29 +01:00
parent adbc036c16
commit f0f7096c94
6 changed files with 5 additions and 18 deletions

View File

@ -199,11 +199,7 @@ class _NotificationTile extends StatelessWidget {
required this.usersList, required this.usersList,
required this.groupsList, required this.groupsList,
required this.onDelete, required this.onDelete,
}) : assert(notification != null), }) : super(key: key);
assert(usersList != null),
assert(groupsList != null),
assert(onDelete != null),
super(key: key);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {

View File

@ -19,9 +19,7 @@ class OtherUserFriendsListScreen extends StatefulWidget {
Key? key, Key? key,
required this.userID, required this.userID,
this.enableAppBar = true, this.enableAppBar = true,
}) : assert(userID != null), }) : super(key: key);
assert(enableAppBar != null),
super(key: key);
@override @override
_OtherUserFriendsListScreenState createState() => _OtherUserFriendsListScreenState createState() =>

View File

@ -21,8 +21,7 @@ class UserPageScreen extends StatefulWidget {
final int userID; final int userID;
const UserPageScreen({Key? key, required this.userID}) const UserPageScreen({Key? key, required this.userID})
: assert(userID != null), : super(key: key);
super(key: key);
@override @override
_UserPageScreenState createState() => _UserPageScreenState(); _UserPageScreenState createState() => _UserPageScreenState();

View File

@ -82,8 +82,6 @@ class AcceptedFriendTile extends StatelessWidget {
} }
void _selectedMenuOption(_FriendMenuChoices value) { void _selectedMenuOption(_FriendMenuChoices value) {
if (value == null) return;
switch (value) { switch (value) {
// Open private conversation // Open private conversation
case _FriendMenuChoices.PRIVATE_CONVERSATION: case _FriendMenuChoices.PRIVATE_CONVERSATION:

View File

@ -24,9 +24,7 @@ class ConversationImageWidget extends StatelessWidget {
this.group, this.group,
this.size = 30, this.size = 30,
this.noUserImage, this.noUserImage,
}) : assert(conversation != null), }) : assert(size > 0),
assert(users != null),
assert(size > 0),
super(key: key); super(key: key);
@override @override

View File

@ -10,9 +10,7 @@ class AppBarWrapper extends StatelessWidget implements PreferredSizeWidget {
final double height; final double height;
const AppBarWrapper({required this.height, required this.appBar}) const AppBarWrapper({required this.height, required this.appBar})
: assert(height != null), : super();
assert(appBar != null),
super();
@override @override
Widget build(BuildContext context) => appBar; Widget build(BuildContext context) => appBar;