GitRemoteSettings: Pass the correct context

The scaffold doesn't exist in that context :(
This commit is contained in:
Vishesh Handa
2020-03-19 23:54:36 +01:00
parent 5db269c826
commit f4c139a2b7

View File

@ -45,14 +45,18 @@ class _GitRemoteSettingsScreenState extends State<GitRemoteSettingsScreen> {
PublicKeyWidget(publicKey),
const SizedBox(height: 16.0),
const Divider(),
Button(
Builder(
builder: (BuildContext context) => Button(
text: "Copy Key",
onPressed: () => _copyKeyToClipboard(context),
),
Button(
),
Builder(
builder: (BuildContext context) => Button(
text: "Regenerate Key",
onPressed: () => _generateSshKey(context),
),
),
ListPreference(
title: "Sync Frequency",
currentOption: settings.remoteSyncFrequency.toPublicString(),