mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
GitRemoteSettings: Pass the correct context
The scaffold doesn't exist in that context :(
This commit is contained in:
@ -45,14 +45,18 @@ class _GitRemoteSettingsScreenState extends State<GitRemoteSettingsScreen> {
|
|||||||
PublicKeyWidget(publicKey),
|
PublicKeyWidget(publicKey),
|
||||||
const SizedBox(height: 16.0),
|
const SizedBox(height: 16.0),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
Button(
|
Builder(
|
||||||
|
builder: (BuildContext context) => Button(
|
||||||
text: "Copy Key",
|
text: "Copy Key",
|
||||||
onPressed: () => _copyKeyToClipboard(context),
|
onPressed: () => _copyKeyToClipboard(context),
|
||||||
),
|
),
|
||||||
Button(
|
),
|
||||||
|
Builder(
|
||||||
|
builder: (BuildContext context) => Button(
|
||||||
text: "Regenerate Key",
|
text: "Regenerate Key",
|
||||||
onPressed: () => _generateSshKey(context),
|
onPressed: () => _generateSshKey(context),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
ListPreference(
|
ListPreference(
|
||||||
title: "Sync Frequency",
|
title: "Sync Frequency",
|
||||||
currentOption: settings.remoteSyncFrequency.toPublicString(),
|
currentOption: settings.remoteSyncFrequency.toPublicString(),
|
||||||
|
Reference in New Issue
Block a user