Formatting
continuous-integration/drone/pr Build was killed
Details
continuous-integration/drone/pr Build was killed
Details
This commit is contained in:
parent
5418bb00d8
commit
9c89c93013
|
@ -402,7 +402,7 @@ class ContactInfoState extends ChangeNotifier {
|
|||
}
|
||||
|
||||
String augmentedNickname(BuildContext context) {
|
||||
return this.nickname + (this.availabilityStatus == ProfileStatusMenu.available ? "" : " (" +this.statusString(context) + ")");
|
||||
return this.nickname + (this.availabilityStatus == ProfileStatusMenu.available ? "" : " (" + this.statusString(context) + ")");
|
||||
}
|
||||
|
||||
String statusString(BuildContext context) {
|
||||
|
|
|
@ -33,10 +33,10 @@ class FileMessage extends Message {
|
|||
int fileSize = shareObj['s'] as int;
|
||||
String fileKey = rootHash + "." + nonce;
|
||||
|
||||
if (metadata.attributes["file-downloaded"] != "true") {
|
||||
if (!Provider.of<ProfileInfoState>(context,listen: false).downloadKnown(fileKey)) {
|
||||
Provider.of<FlwtchState>(context, listen: false).cwtch.CheckDownloadStatus(Provider.of<ProfileInfoState>(context, listen: false).onion, fileKey);
|
||||
}
|
||||
if (metadata.attributes["file-downloaded"] != "true") {
|
||||
if (!Provider.of<ProfileInfoState>(context, listen: false).downloadKnown(fileKey)) {
|
||||
Provider.of<FlwtchState>(context, listen: false).cwtch.CheckDownloadStatus(Provider.of<ProfileInfoState>(context, listen: false).onion, fileKey);
|
||||
}
|
||||
}
|
||||
|
||||
if (!validHash(rootHash, nonce)) {
|
||||
|
|
|
@ -164,15 +164,21 @@ class _ContactsViewState extends State<ContactsView> {
|
|||
itemBuilder: (BuildContext context) => <PopupMenuEntry<ProfileStatusMenu>>[
|
||||
PopupMenuItem<ProfileStatusMenu>(
|
||||
value: ProfileStatusMenu.available,
|
||||
child: Text(AppLocalizations.of(context)!.availabilityStatusAvailable!,),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.availabilityStatusAvailable!,
|
||||
),
|
||||
),
|
||||
PopupMenuItem<ProfileStatusMenu>(
|
||||
value: ProfileStatusMenu.away,
|
||||
child: Text(AppLocalizations.of(context)!.availabilityStatusAway!,),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.availabilityStatusAway!,
|
||||
),
|
||||
),
|
||||
PopupMenuItem<ProfileStatusMenu>(
|
||||
value: ProfileStatusMenu.busy,
|
||||
child: Text(AppLocalizations.of(context)!.availabilityStatusBusy!,),
|
||||
child: Text(
|
||||
AppLocalizations.of(context)!.availabilityStatusBusy!,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
@ -230,11 +230,12 @@ class _MessageViewState extends State<MessageView> {
|
|||
),
|
||||
Expanded(
|
||||
child: Container(
|
||||
height: 42,
|
||||
clipBehavior: Clip.hardEdge,
|
||||
decoration: BoxDecoration(),
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft, child: Text(
|
||||
height: 42,
|
||||
clipBehavior: Clip.hardEdge,
|
||||
decoration: BoxDecoration(),
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Text(
|
||||
Provider.of<ContactInfoState>(context).augmentedNickname(context),
|
||||
overflow: TextOverflow.clip,
|
||||
maxLines: 1,
|
||||
|
|
|
@ -113,15 +113,24 @@ class _PeerSettingsViewState extends State<PeerSettingsView> {
|
|||
child: Column(children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.all(1),
|
||||
child: SelectableText(Provider.of<ContactInfoState>(context, listen: false).attributes[0] ?? "", textAlign: TextAlign.center,),
|
||||
child: SelectableText(
|
||||
Provider.of<ContactInfoState>(context, listen: false).attributes[0] ?? "",
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.all(1),
|
||||
child: SelectableText(Provider.of<ContactInfoState>(context, listen: false).attributes[1] ?? "", textAlign: TextAlign.center,),
|
||||
child: SelectableText(
|
||||
Provider.of<ContactInfoState>(context, listen: false).attributes[1] ?? "",
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.all(1),
|
||||
child: SelectableText(Provider.of<ContactInfoState>(context, listen: false).attributes[2] ?? "", textAlign: TextAlign.center,),
|
||||
child: SelectableText(
|
||||
Provider.of<ContactInfoState>(context, listen: false).attributes[2] ?? "",
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
)
|
||||
]))
|
||||
]),
|
||||
|
|
Loading…
Reference in New Issue