Merge pull request 'rename' (#94) from rename into trunk
continuous-integration/drone/push Build is passing Details

Reviewed-on: #94
This commit is contained in:
erinn 2021-05-19 18:22:17 -07:00
commit d8059197fe
5 changed files with 8 additions and 6 deletions

View File

@ -1 +1 @@
v0.0.2-30-g2788c06-2021-05-18-20-00
v0.0.2-36-g84d85b7-2021-05-20-01-14

BIN
cwtch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -85,7 +85,7 @@ class _ContactsViewState extends State<ContactsView> {
Widget _buildContactList() {
final tiles = Provider.of<ContactListState>(context).filteredList().map((ContactInfoState contact) {
return ChangeNotifierProvider<ContactInfoState>.value(key: ValueKey(contact.onion), value: contact, builder: (_, __) => ContactRow());
return ChangeNotifierProvider<ContactInfoState>.value(key: ValueKey(contact.profileOnion+""+contact.onion), value: contact, builder: (_, __) => ContactRow());
});
final divided = ListTile.divideTiles(
context: context,

View File

@ -88,15 +88,17 @@ class _ContactRowState extends State<ContactRow> {
void _pushMessageView(String handle) {
Provider.of<ProfileInfoState>(context, listen: false).contactList.getContact(handle).unreadMessages = 0;
var profileOnion = Provider.of<ProfileInfoState>(context, listen: false).onion;
Navigator.of(context).push(
MaterialPageRoute<void>(
builder: (BuildContext builderContext) {
var profile = Provider.of<FlwtchState>(builderContext, listen: false).profs.getProfile(profileOnion);
return MultiProvider(
providers: [
ChangeNotifierProvider.value(value: Provider.of<ProfileInfoState>(context)),
ChangeNotifierProvider.value(value: Provider.of<ProfileInfoState>(context).contactList.getContact(handle)),
ChangeNotifierProvider.value(value: profile),
ChangeNotifierProvider.value(value: profile.contactList.getContact(handle)),
],
child: MessageView(),
builder:(context, child) => MessageView(),
);
},
),

View File

@ -14,7 +14,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.6.0"
version: "2.6.1"
boolean_selector:
dependency: transitive
description: