new & opt.

opt.: input field auto focus
opt.: snippet page top padding
new: setting of editor font size
This commit is contained in:
lollipopkit
2023-08-21 13:54:09 +08:00
parent 6a2191ff92
commit e3f2b211a9
16 changed files with 106 additions and 43 deletions

View File

@@ -345,6 +345,7 @@ class _LocalStoragePageState extends State<LocalStoragePage> {
context: context,
title: Text(_s.rename),
child: Input(
autoFocus: true,
controller: TextEditingController(text: fileName),
onSubmitted: (p0) {
context.pop();

View File

@@ -246,6 +246,8 @@ class _SftpPageState extends State<SftpPage> {
mainAxisSize: MainAxisSize.min,
children: [
Input(
autoFocus: true,
icon: Icons.abc,
label: _s.path,
onSubmitted: (value) => context.pop(value),
),
@@ -492,6 +494,8 @@ class _SftpPageState extends State<SftpPage> {
context: context,
title: Text(_s.createFolder),
child: Input(
autoFocus: true,
icon: Icons.folder,
controller: textController,
label: _s.name,
),
@@ -533,6 +537,8 @@ class _SftpPageState extends State<SftpPage> {
context: context,
title: Text(_s.createFile),
child: Input(
autoFocus: true,
icon: Icons.insert_drive_file,
controller: textController,
label: _s.name,
),
@@ -576,6 +582,8 @@ class _SftpPageState extends State<SftpPage> {
context: context,
title: Text(_s.rename),
child: Input(
autoFocus: true,
icon: Icons.abc,
controller: textController,
label: _s.name,
),