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