mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 16:25:17 +00:00
Fix a few notices
This commit is contained in:
@ -86,9 +86,7 @@ class _SearchScreenState extends State<SearchScreen> {
|
||||
class _SearchResultUser extends StatelessWidget {
|
||||
final User user;
|
||||
|
||||
const _SearchResultUser({Key? key, required this.user})
|
||||
: assert(user != null),
|
||||
super(key: key);
|
||||
const _SearchResultUser({Key? key, required this.user}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@ -105,9 +103,7 @@ class _SearchResultUser extends StatelessWidget {
|
||||
class _SearchResultGroup extends StatelessWidget {
|
||||
final Group group;
|
||||
|
||||
const _SearchResultGroup({Key? key, required this.group})
|
||||
: assert(group != null),
|
||||
super(key: key);
|
||||
const _SearchResultGroup({Key? key, required this.group}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -54,7 +54,7 @@ class _UpdateConversationScreen extends State<UpdateConversationScreen> {
|
||||
String get _conversationColor => _colorController.text;
|
||||
|
||||
Color? get _color {
|
||||
if (_conversationColor == null || _conversationColor.isEmpty) return null;
|
||||
if (_conversationColor.isEmpty) return null;
|
||||
|
||||
try {
|
||||
return HexColor(_conversationColor);
|
||||
@ -237,8 +237,6 @@ class _UpdateConversationScreen extends State<UpdateConversationScreen> {
|
||||
|
||||
/// An option of the members menu has been selected
|
||||
void _membersMenuItemSelected(User user, _MembersMenuChoices choice) {
|
||||
if (choice == null) return;
|
||||
|
||||
switch (choice) {
|
||||
case _MembersMenuChoices.REMOVE:
|
||||
_removeMember(user);
|
||||
@ -307,7 +305,7 @@ class _UpdateConversationScreen extends State<UpdateConversationScreen> {
|
||||
members: _members.map((element) => element.id).toList(),
|
||||
follow: _followConversation,
|
||||
canEveryoneAddMembers: _canEveryoneAddMembers!,
|
||||
color: _color)) ;
|
||||
color: _color));
|
||||
|
||||
MainController.of(context)!.popPage();
|
||||
MainController.of(context)!.openConversationById(conversationID);
|
||||
|
@ -18,8 +18,7 @@ class UserAccessDeniedScreen extends StatefulWidget {
|
||||
final int userID;
|
||||
|
||||
const UserAccessDeniedScreen({Key? key, required this.userID})
|
||||
: assert(userID != null),
|
||||
super(key: key);
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
_UserAccessDeniedScreenState createState() => _UserAccessDeniedScreenState();
|
||||
|
@ -21,8 +21,7 @@ class AboutUserSection extends StatefulWidget {
|
||||
const AboutUserSection({
|
||||
Key? key,
|
||||
required this.user,
|
||||
}) : assert(user != null),
|
||||
super(key: key);
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
_AboutUserSectionState createState() => _AboutUserSectionState();
|
||||
|
@ -17,8 +17,7 @@ class UserPageHeader extends StatelessWidget {
|
||||
Key? key,
|
||||
required this.user,
|
||||
required this.bgColor,
|
||||
}) : assert(user != null),
|
||||
super(key: key);
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Container(
|
||||
|
@ -15,8 +15,7 @@ class UserPostsSection extends StatefulWidget {
|
||||
const UserPostsSection({
|
||||
Key? key,
|
||||
required this.user,
|
||||
}) : assert(user != null),
|
||||
super(key: key);
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
_UserPostsSectionState createState() => _UserPostsSectionState();
|
||||
|
Reference in New Issue
Block a user