From dcb389a59e7c3f87b45d817fff9d3ae6e56a3d26 Mon Sep 17 00:00:00 2001 From: Benjamin Canape Date: Sat, 20 Apr 2024 12:17:17 +0200 Subject: [PATCH] fix on community screen (#57) --- .../community/screens/community_screen.dart | 24 +------------------ .../community/widgets/search_widget.dart | 2 ++ 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/lib/presentation/community/screens/community_screen.dart b/lib/presentation/community/screens/community_screen.dart index 469894cd..c09f9b06 100644 --- a/lib/presentation/community/screens/community_screen.dart +++ b/lib/presentation/community/screens/community_screen.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import '../../../domain/entities/activity.dart'; @@ -8,7 +7,6 @@ import '../../../domain/entities/user.dart'; import '../../common/activity/widgets/activity_list.dart'; import '../../common/core/enums/infinite_scroll_list.enum.dart'; import '../../common/core/utils/color_utils.dart'; -import '../../common/core/utils/form_utils.dart'; import '../../common/core/utils/ui_utils.dart'; import '../view_model/community_view_model.dart'; import '../view_model/pending_request_view_model.dart'; @@ -115,27 +113,7 @@ class CommunityScreen extends HookConsumerWidget { ); }, ) - : Align( - alignment: Alignment.center, - child: Badge.count( - count: total, - textColor: ColorUtils.black, - backgroundColor: ColorUtils.white, - child: Padding( - padding: const EdgeInsets.fromLTRB(0, 0, 16, 0), - child: - Row(mainAxisSize: MainAxisSize.min, children: [ - Icon( - Icons.people, - color: ColorUtils.white, - ), - const SizedBox(width: 8), - Text( - AppLocalizations.of(context)! - .see_pending_requests, - style: FormUtils.darkTextFormFieldStyle, - ), - ])))); + : Container(); }, loading: () { return Container(); diff --git a/lib/presentation/community/widgets/search_widget.dart b/lib/presentation/community/widgets/search_widget.dart index 817cfdf4..fa11b734 100644 --- a/lib/presentation/community/widgets/search_widget.dart +++ b/lib/presentation/community/widgets/search_widget.dart @@ -45,6 +45,8 @@ class SearchWidget extends HookConsumerWidget implements PreferredSizeWidget { }, onSuggestionSelected: (User suggestion) => UserUtils.goToProfile(suggestion), + noItemsFoundBuilder: (context) => + Text(AppLocalizations.of(context)!.no_data), ), ); }