fix: Fix dependents error when switching accounts

This commit is contained in:
Anton Stubenbord
2023-05-12 13:18:49 +02:00
parent 2fad76c697
commit 3eaec1b85c
2 changed files with 10 additions and 12 deletions

View File

@@ -56,10 +56,11 @@ class SliverSearchBar extends StatelessWidget {
},
),
onPressed: () {
final apiVersion = context.read<ApiVersion>();
showDialog(
context: context,
builder: (_) => Provider.value(
value: context.read<ApiVersion>(),
builder: (context) => Provider.value(
value: apiVersion,
child: const ManageAccountsPage(),
),
);