addressing comments on #77
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
erinn 2021-05-11 15:56:16 -07:00
parent c7c809fa43
commit d64ca68f25
4 changed files with 12 additions and 1 deletions

View File

@ -1 +1 @@
v0.0.2-24-ga1095b7-2021-05-11-00-13
v0.0.2-28-gbef54c6-2021-05-11-22-38

View File

@ -145,6 +145,9 @@ class _MessageViewState extends State<MessageView> {
void placeHolder() => {};
// explicitly passing BuildContext ctx here is important, change at risk to own health
// otherwise some Providers will become inaccessible to subwidgets...?
// https://stackoverflow.com/a/63818697
void _modalSendInvitation(BuildContext ctx) {
showModalBottomSheet<void>(
context: ctx,

View File

@ -3,6 +3,10 @@ import 'package:provider/provider.dart';
import '../model.dart';
// Dropdown menu populated from Provider.of<ProfileInfoState>'s contact list
// Includes both peers and groups; begins empty/nothing selected
// Displays nicknames to UI but uses handles as values
// Pass an onChanged handler to access value
class DropdownContacts extends StatefulWidget {
DropdownContacts({this.onChanged,});
final Function(dynamic) onChanged;

View File

@ -8,6 +8,9 @@ import 'package:intl/intl.dart';
import '../settings.dart';
// Like MessageBubble but for displaying chat overlay 100/101 invitations
// Offers the user an accept/reject button if they don't have a matching contact already
// todo: Reject buttons currently aren't tracked and will reset when the message is reloaded
class InvitationBubble extends StatefulWidget {
@override
InvitationBubbleState createState() => InvitationBubbleState();
@ -43,6 +46,7 @@ class InvitationBubbleState extends State<InvitationBubble> {
var wdgSender = Center(widthFactor:1, child: SelectableText(senderDisplayStr + '\u202F',
style: TextStyle(fontSize: 9.0, color: fromMe ? Provider.of<Settings>(context).theme.messageFromMeTextColor() : Provider.of<Settings>(context).theme.messageFromOtherTextColor())));
// todo: translations
var messageStr = "";
if (fromMe) {
//todo: get group name?