Fix Copy button; Improve wallet name font (monospace)
This commit is contained in:
parent
30b5d1d91a
commit
6be4a92f20
|
@ -211,7 +211,7 @@ class WalletOptionsProvider with ChangeNotifier {
|
|||
bool nameState;
|
||||
if (isEditing) {
|
||||
if (!nameController.text.contains(':') &&
|
||||
nameController.text.length <= 45) {
|
||||
nameController.text.length <= 39) {
|
||||
await _renameWallet(_wID, nameController.text);
|
||||
nameState = true;
|
||||
} else {
|
||||
|
|
|
@ -49,7 +49,7 @@ class WalletOptions extends StatelessWidget with ChangeNotifier {
|
|||
_walletOptions.nameController.text.length >= 15
|
||||
? _nbrLinesName = 2
|
||||
: _nbrLinesName = 1;
|
||||
if (_walletOptions.nameController.text.length >= 30) _nbrLinesName = 3;
|
||||
if (_walletOptions.nameController.text.length >= 26) _nbrLinesName = 3;
|
||||
|
||||
// print(_walletOptions.generateQRcode(_walletOptions.pubkey.text));
|
||||
|
||||
|
@ -94,7 +94,7 @@ class WalletOptions extends StatelessWidget with ChangeNotifier {
|
|||
end: Alignment.bottomCenter,
|
||||
colors: [
|
||||
Color(0xffFFD68E),
|
||||
Color(0xFFFFFCF7),
|
||||
Color(0xfffafafa),
|
||||
],
|
||||
)),
|
||||
child: Row(children: <Widget>[
|
||||
|
@ -113,7 +113,7 @@ class WalletOptions extends StatelessWidget with ChangeNotifier {
|
|||
Row(children: <Widget>[
|
||||
Column(children: <Widget>[
|
||||
SizedBox(
|
||||
width: 250,
|
||||
width: 260,
|
||||
child: TextField(
|
||||
// autofocus: true,
|
||||
focusNode: _walletOptions.walletNameFocus,
|
||||
|
@ -131,7 +131,8 @@ class WalletOptions extends StatelessWidget with ChangeNotifier {
|
|||
style: TextStyle(
|
||||
fontSize: 27,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.w400)),
|
||||
fontWeight: FontWeight.w400,
|
||||
fontFamily: 'Monospace')),
|
||||
),
|
||||
SizedBox(height: 5),
|
||||
Query(
|
||||
|
@ -301,8 +302,8 @@ class WalletOptions extends StatelessWidget with ChangeNotifier {
|
|||
onPrimary: Colors.black, // foreground
|
||||
),
|
||||
onPressed: () {
|
||||
ClipboardData(
|
||||
text: _walletOptions.pubkey.text);
|
||||
Clipboard.setData(ClipboardData(
|
||||
text: _walletOptions.pubkey.text));
|
||||
_walletOptions.snackCopyKey(ctx);
|
||||
},
|
||||
child: Row(children: <Widget>[
|
||||
|
|
Loading…
Reference in New Issue