fix debug exceptions
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
erinn 2021-05-17 17:09:32 -07:00
parent 3823492ad0
commit 1657ef2e49
3 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@ class _GlobalSettingsViewState extends State<GlobalSettingsView> {
title: Text(/*AppLocalizations.of(context).settingLanguage*/ "UI Columns", style: TextStyle(color: settings.current().mainTextColor())),
leading: Icon(Icons.table_chart, color: settings.current().mainTextColor()),
trailing: DropdownButton(
value: Provider.of<Settings>(context).locale.languageCode,
value: "Single",
onChanged: (String newValue) {
if (newValue == "Double (1:2)") {
Provider.of<FlwtchState>(context).columns = [1, 2];

View File

@ -87,7 +87,7 @@ class _ContactRowState extends State<ContactRow> {
}
void _pushMessageView(String handle) {
Provider.of<ProfileInfoState>(context).contactList.getContact(handle).unreadMessages = 0;
Provider.of<ProfileInfoState>(context, listen: false).contactList.getContact(handle).unreadMessages = 0;
Navigator.of(context).push(
MaterialPageRoute<void>(
builder: (BuildContext builderContext) {

View File

@ -38,8 +38,8 @@ class _MessageListState extends State<MessageList> {
key: ValueKey(trueIndex),
create: (x) => MessageState(
context: itemBuilderContext,
profileOnion: Provider.of<ProfileInfoState>(outerContext).onion,
contactHandle: Provider.of<ContactInfoState>(x).onion,
profileOnion: Provider.of<ProfileInfoState>(outerContext, listen: false).onion,
contactHandle: Provider.of<ContactInfoState>(x, listen: false).onion,
messageIndex: trueIndex,
),
builder: (bcontext, child) {