mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-19 10:04:17 +01:00
misc-seed-page-fixes (#2280)
* feat: Trim pasted seed * fix: Fix Seed Type selection
This commit is contained in:
@@ -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!;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user