Skip to content

Commit

Permalink
fix on community screen (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminCanape authored Apr 20, 2024
1 parent 074d500 commit dcb389a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
24 changes: 1 addition & 23 deletions lib/presentation/community/screens/community_screen.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions lib/presentation/community/widgets/search_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class SearchWidget extends HookConsumerWidget implements PreferredSizeWidget {
},
onSuggestionSelected: (User suggestion) =>
UserUtils.goToProfile(suggestion),
noItemsFoundBuilder: (context) =>
Text(AppLocalizations.of(context)!.no_data),
),
);
}
Expand Down

0 comments on commit dcb389a

Please sign in to comment.