misc-seed-page-fixes (#2280)

* feat: Trim pasted seed

* fix: Fix Seed Type selection
This commit is contained in:
Konstantin Ullrich
2025-05-21 01:24:30 +03:00
committed by GitHub
parent 79faeb98af
commit 43808992ec
2 changed files with 27 additions and 14 deletions
+3 -3
View File
@@ -146,12 +146,12 @@ class SeedWidgetState extends State<SeedWidget> {
}
Future<void> _pasteText() async {
final value = await Clipboard.getData('text/plain');
final value = (await Clipboard.getData('text/plain'))?.text?.trim();
if (value?.text?.isNotEmpty ?? false) {
if (value?.isNotEmpty ?? false) {
setState(() {
_showPlaceholder = false;
controller.text = value!.text!;
controller.text = value!;
});
}
}