Skip to content

Commit

Permalink
guest name format
Browse files Browse the repository at this point in the history
  • Loading branch information
venkylm10 committed Oct 17, 2024
1 parent d838ff4 commit e27c27c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/models/events/event_invite_members.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ class EventInviteMember {
});

factory EventInviteMember.fromMap(Map<String, dynamic> map) {
final nameSplits = map['name'].toString().split(' ');
final name = nameSplits.length > 1 ? "${nameSplits[0]} ${nameSplits[1][0]}." : nameSplits[0];
return EventInviteMember(
image: map['image'] as String,
phone: map['phone'] as String,
name: map['name'] as String,
name: name,
status: map['status'] as String,
);
}
Expand Down
4 changes: 3 additions & 1 deletion lib/models/events/event_request_member.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ class EventRequestMember {
});

factory EventRequestMember.fromMap(Map<String, dynamic> map) {
final nameSplits = map['name'].toString().split(' ');
final name = nameSplits.length > 1 ? "${nameSplits[0]} ${nameSplits[1][0]}." : nameSplits[0];
return EventRequestMember(
image: map['image'] as String,
phone: map['phone'] as String,
name: map['name'] as String,
name: name,
status: map['status'] as String,
id: map['id'] as int,
attendees: map['attendees'] as int,
Expand Down
1 change: 0 additions & 1 deletion lib/pages/events/widgets/event_details_ticket_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:zipbuzz/controllers/profile/user_controller.dart';
import 'package:zipbuzz/models/events/event_model.dart';
import 'package:zipbuzz/pages/events/event_details_page.dart';
import 'package:zipbuzz/pages/events/widgets/event_host_guest_list.dart';
import 'package:zipbuzz/pages/events/widgets/event_payment_links.dart';
import 'package:zipbuzz/utils/constants/colors.dart';
Expand Down

0 comments on commit e27c27c

Please sign in to comment.