mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-23 11:15:33 +00:00
Customised the GenerateName button according to PasteButton. Figma style is no longer applicable.
This commit is contained in:
parent
1f021b09e4
commit
a89397651f
3 changed files with 36 additions and 36 deletions
|
@ -127,17 +127,19 @@ class _WalletNameFormState extends State<WalletNameForm> {
|
|||
});
|
||||
},
|
||||
icon: Container(
|
||||
padding: const EdgeInsets.all(7),
|
||||
padding: const EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(6.0),
|
||||
color: Color.fromRGBO(91, 112, 146, 1),
|
||||
color: Theme.of(context).hintColor,
|
||||
),
|
||||
width: 27.0,
|
||||
height: 27.0,
|
||||
width: 34,
|
||||
height: 34,
|
||||
child: Image.asset(
|
||||
'assets/images/refresh_icon.png',
|
||||
width: 14,
|
||||
height: 13,
|
||||
color: Theme.of(context)
|
||||
.primaryTextTheme
|
||||
.display1
|
||||
.decorationColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -61,8 +61,12 @@ class WalletRestoreFromSeedFormState extends State<WalletRestoreFromSeedForm> {
|
|||
controller: nameTextEditingController,
|
||||
hintText: S.of(context).wallet_name,
|
||||
validator: WalletNameValidator(),
|
||||
suffixIcon: IconButton(
|
||||
onPressed: () async {
|
||||
suffixIcon: Container(
|
||||
width: 12,
|
||||
height: 14,
|
||||
margin: const EdgeInsets.only( bottom: 15, left: 13),
|
||||
child: InkWell(
|
||||
onTap: () async {
|
||||
final String rName = await generateName();
|
||||
|
||||
print(rName);
|
||||
|
@ -73,20 +77,16 @@ class WalletRestoreFromSeedFormState extends State<WalletRestoreFromSeedForm> {
|
|||
offset: nameTextEditingController.text.length));
|
||||
});
|
||||
},
|
||||
icon:Container(
|
||||
padding: const EdgeInsets.all(7)
|
||||
,
|
||||
child: Container(
|
||||
padding: EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(6.0),
|
||||
color: Color.fromRGBO(91, 112, 146, 1),),
|
||||
width: 27.0,
|
||||
height: 27.0,
|
||||
|
||||
child: Image.asset(
|
||||
'assets/images/refresh_icon.png',
|
||||
width: 14,
|
||||
height: 13,
|
||||
),
|
||||
color: Theme.of(context).hintColor,
|
||||
borderRadius: BorderRadius.all(Radius.circular(6))),
|
||||
child: Image.asset('assets/images/refresh_icon.png',
|
||||
color: Theme.of(context)
|
||||
.primaryTextTheme
|
||||
.display1
|
||||
.decorationColor)),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -25,8 +25,7 @@ class SeedWidgetState extends State<SeedWidget> {
|
|||
SeedWidgetState(String language, this.type)
|
||||
: controller = TextEditingController(),
|
||||
focusNode = FocusNode(),
|
||||
words = SeedValidator.getWordList(
|
||||
type:type, language: language) {
|
||||
words = SeedValidator.getWordList(type: type, language: language) {
|
||||
focusNode.addListener(() {
|
||||
setState(() {
|
||||
if (!focusNode.hasFocus && controller.text.isEmpty) {
|
||||
|
@ -56,8 +55,7 @@ class SeedWidgetState extends State<SeedWidget> {
|
|||
|
||||
void changeSeedLanguage(String language) {
|
||||
setState(() {
|
||||
words = SeedValidator.getWordList(
|
||||
type: type, language: language);
|
||||
words = SeedValidator.getWordList(type: type, language: language);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue