This commit is contained in:
Matthew Fosse 2024-01-03 16:02:22 -05:00
parent c4c4afb74a
commit ea7e5880f2

View file

@ -96,12 +96,12 @@ class ConnectionSyncPage extends BasePage {
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 10),
child: Column(children: [
Observer(builder: (context) {
return SettingsPickerCell<TorConnection>(
return SettingsPickerCell<TorConnectionMode>(
title: S.current.tor_connection,
items: TorConnection.all,
displayItem: (TorConnection torConnection) => torConnection.name,
selectedItem: dashboardViewModel.torConnection,
onItemSelected: dashboardViewModel.setTorConnection,
items: TorConnectionMode.all,
displayItem: (TorConnectionMode mode) => mode.title,
selectedItem: dashboardViewModel.torConnectionMode,
onItemSelected: dashboardViewModel.setTorConnectionMode,
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(25), topRight: Radius.circular(25)),