mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
rollback: write script to /dev/shm (#474)
This commit is contained in:
@@ -174,6 +174,7 @@ class _ServerEditPageState extends State<ServerEditPage> {
|
||||
|
||||
Widget _buildForm() {
|
||||
final children = [
|
||||
_buildWriteScriptTip(),
|
||||
Input(
|
||||
autoFocus: true,
|
||||
controller: _nameController,
|
||||
@@ -638,4 +639,19 @@ class _ServerEditPageState extends State<ServerEditPage> {
|
||||
|
||||
context.pop();
|
||||
}
|
||||
|
||||
Widget _buildWriteScriptTip() {
|
||||
return ListTile(
|
||||
leading: const Icon(Icons.tips_and_updates).paddingOnly(left: 13),
|
||||
title: Text(l10n.attention),
|
||||
onTap: () {
|
||||
context.showRoundDialog(
|
||||
title: l10n.attention,
|
||||
child: SimpleMarkdown(data: l10n.writeScriptTip),
|
||||
actions: Btns.oks(onTap: () => context.pop(true)),
|
||||
);
|
||||
},
|
||||
trailing: const Icon(Icons.keyboard_arrow_right),
|
||||
).cardx;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user