#54 run multiple snippets

This commit is contained in:
lollipopkit
2023-07-08 00:12:15 +08:00
parent cb16b3a8b6
commit fefd3f9701
25 changed files with 326 additions and 116 deletions

View File

@@ -178,6 +178,7 @@ class _SFTPDownloadedPageState extends State<SFTPDownloadedPage> {
if (stat.size > editorMaxSize) {
showRoundDialog(
context: context,
title: Text(_s.attention),
child: Text(_s.fileTooLarge(fileName, stat.size, '1m')),
);
return;
@@ -223,6 +224,7 @@ class _SFTPDownloadedPageState extends State<SFTPDownloadedPage> {
context.pop();
showRoundDialog(
context: context,
title: Text(_s.delete),
child: Text(_s.sureDelete(fileName)),
actions: [
TextButton(

View File

@@ -134,6 +134,7 @@ class _SFTPPageState extends State<SFTPPage> {
onPressed: () async {
final idx = await showRoundDialog(
context: context,
title: Text(_s.choose),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@@ -517,6 +518,7 @@ class _SFTPPageState extends State<SFTPPage> {
if (textController.text == '') {
showRoundDialog(
context: context,
title: Text(_s.attention),
child: Text(_s.fieldMustNotEmpty),
actions: [
TextButton(
@@ -559,6 +561,7 @@ class _SFTPPageState extends State<SFTPPage> {
if (textController.text == '') {
showRoundDialog(
context: context,
title: Text(_s.attention),
child: Text(_s.fieldMustNotEmpty),
actions: [
TextButton(