fix contact list bug

This commit is contained in:
Serhii 2022-11-21 22:41:09 +02:00
parent 1a089eaa60
commit 05f1b17a73
2 changed files with 5 additions and 3 deletions

View file

@ -300,7 +300,7 @@ Route<dynamic> createRoute(RouteSettings settings) {
case Routes.addressBook:
return MaterialPageRoute<void>(
builder: (_) =>
getIt.get<ContactListPage>(param1: true, param2: null));
getIt.get<ContactListPage>(param1: true));
case Routes.pickerAddressBook:
final selectedCurrency = settings.arguments as CryptoCurrency;

View file

@ -68,7 +68,9 @@ class ContactListPage extends BasePage {
contactListViewModel.getWallets(isEditable, selectedCurrency);
return Container(
padding: EdgeInsets.only(top: 20.0, bottom: 20.0),
child: CollapsibleSectionList(
child: Observer(
builder: (_) {
return CollapsibleSectionList(
context: context,
sectionCount: 2,
themeColor: Theme.of(context).primaryTextTheme.headline6!.color!,
@ -104,7 +106,7 @@ class ContactListPage extends BasePage {
child: content,
);
},
)
);})
);
}