opt webdav

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-28 19:23:38 +08:00
parent 26c420023f
commit e5c86e1d2e
3 changed files with 20 additions and 7 deletions

View File

@@ -23,6 +23,7 @@ class _WebDavSettingPageState extends State<WebDavSettingPage> {
final _usernameCtr = TextEditingController(text: Pref.webdavUsername); final _usernameCtr = TextEditingController(text: Pref.webdavUsername);
final _passwordCtr = TextEditingController(text: Pref.webdavPassword); final _passwordCtr = TextEditingController(text: Pref.webdavPassword);
final _directoryCtr = TextEditingController(text: Pref.webdavDirectory); final _directoryCtr = TextEditingController(text: Pref.webdavDirectory);
bool _obscureText = true;
@override @override
void dispose() { void dispose() {
@@ -67,11 +68,18 @@ class _WebDavSettingPageState extends State<WebDavSettingPage> {
TextField( TextField(
controller: _passwordCtr, controller: _passwordCtr,
autofillHints: const [AutofillHints.password], autofillHints: const [AutofillHints.password],
decoration: const InputDecoration( decoration: InputDecoration(
labelText: '密码', labelText: '密码',
border: OutlineInputBorder(), border: const OutlineInputBorder(),
suffixIcon: IconButton(
onPressed: () => setState(() => _obscureText = !_obscureText),
icon: _obscureText
? const Icon(Icons.visibility)
: const Icon(Icons.visibility_off),
), ),
), ),
obscureText: _obscureText,
),
const SizedBox(height: 20), const SizedBox(height: 20),
TextField( TextField(
controller: _directoryCtr, controller: _directoryCtr,

View File

@@ -2058,10 +2058,11 @@ packages:
webdav_client: webdav_client:
dependency: "direct main" dependency: "direct main"
description: description:
name: webdav_client path: "."
sha256: "682fffc50b61dc0e8f46717171db03bf9caaa17347be41c0c91e297553bf86b2" ref: main
url: "https://pub.dev" resolved-ref: "2f669c98fb81cff1c64fee93466a1475c77e4273"
source: hosted url: "https://github.com/wgh136/webdav_client.git"
source: git
version: "1.2.2" version: "1.2.2"
win32: win32:
dependency: transitive dependency: transitive

View File

@@ -188,7 +188,11 @@ dependencies:
fl_chart: ^1.0.0 fl_chart: ^1.0.0
synchronized: ^3.3.0 synchronized: ^3.3.0
document_file_save_plus: ^2.0.0 document_file_save_plus: ^2.0.0
webdav_client: ^1.2.2 # webdav_client: ^1.2.2
webdav_client:
git:
url: https://github.com/wgh136/webdav_client.git
ref: main
re_highlight: ^0.0.3 re_highlight: ^0.0.3
cached_network_svg_image: ^1.2.0 cached_network_svg_image: ^1.2.0
flutter_sortable_wrap: flutter_sortable_wrap: