Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
.svn/
*.env
.vscode
/lib/firebase_options.dart
/android/app/google-services.json
/firebase.json
/android/app/upload-keystore.jks



Expand Down
1 change: 1 addition & 0 deletions animations/empty.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions lib/core/utils/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ class Style {
);

static TextStyle subHeading = TextStyle(
fontSize: 18,
fontSize: 20,
fontWeight: FontWeight.bold,
color: textGray,
);

static TextStyle body = TextStyle(
Expand Down
487 changes: 336 additions & 151 deletions lib/presentation/group/group_screen.dart

Large diffs are not rendered by default.

373 changes: 208 additions & 165 deletions lib/presentation/group/widgets/beacon_card.dart

Large diffs are not rendered by default.

557 changes: 334 additions & 223 deletions lib/presentation/group/widgets/create_join_dialog.dart

Large diffs are not rendered by default.

46 changes: 26 additions & 20 deletions lib/presentation/group/widgets/group_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class GroupWidgetUtils {
heroTag: 'members',
backgroundColor: kYellow,
onPressed: () {
_showMembers(context);
showMembers(context);
},
child: Icon(Icons.person, size: 30),
);
}

static void _showMembers(BuildContext context) {
static void showMembers(BuildContext context) {
// Dialog for filtering beacons
locator<MembersCubit>().loadMembers();
showDialog(
Expand Down Expand Up @@ -163,7 +163,7 @@ class GroupWidgetUtils {
return FloatingActionButton(
heroTag: 'filter beacon',
backgroundColor: kYellow,
onPressed: () => _showFilterBeaconAlertBox(context, groupId, groupCubit),
onPressed: () => showFilterBeaconAlertBox(context, groupId, groupCubit),
child: ImageIcon(
AssetImage(AppConstants.filterIconPath),
size: 35,
Expand Down Expand Up @@ -420,7 +420,7 @@ class GroupWidgetUtils {
);
}

static void _showFilterBeaconAlertBox(
static void showFilterBeaconAlertBox(
BuildContext context, String groupId, GroupCubit groupCubit) {
log(100.h.toString());
// Dialog for filtering beacons
Expand All @@ -429,12 +429,12 @@ class GroupWidgetUtils {
builder: (context) {
bool isSmallSized = 100.h < 800;
return AlertDialog(
backgroundColor: Colors.grey[100],
title: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ImageIcon(
AssetImage(AppConstants.filterIconPath),
size: 30,
semanticLabel: 'Filter',
color: Colors.black,
),
Expand All @@ -454,21 +454,27 @@ class GroupWidgetUtils {
itemBuilder: (context, index) {
String type = filters.values[index].name;

return HikeButton(
buttonWidth: 2.w,
buttonHeight: 1.h,
text: type,
onTap: () {
Navigator.pop(context);
if (filters.values[index] == filters.NEARBY) {
_neabyFilterAlertBox(context, groupId, groupCubit);
} else {
locator<GroupCubit>()
.changeFilter(filters.values[index]);
}
},
buttonColor: kYellow,
);
return ElevatedButton(
onPressed: () {
Navigator.pop(context);
if (filters.values[index] == filters.NEARBY) {
_neabyFilterAlertBox(context, groupId, groupCubit);
} else {
locator<GroupCubit>()
.changeFilter(filters.values[index]);
}
},
child: Text(
type,
style: TextStyle(fontSize: 18, height: 1.5),
),
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),
),
padding:
EdgeInsets.symmetric(vertical: 10, horizontal: 20),
));
},
),
),
Expand Down
Loading