mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
Cw 53 allow renaming of currently selected account and subaddress (#291)
* fixed address cell background * fixed account title padding * fixed format
This commit is contained in:
parent
3f19564da4
commit
23913c01dc
4 changed files with 8 additions and 13 deletions
|
@ -82,6 +82,7 @@ class MoneroAccountListPage extends StatelessWidget {
|
|||
alignment: Alignment.center,
|
||||
children: <Widget>[
|
||||
ListView.separated(
|
||||
padding: EdgeInsets.zero,
|
||||
controller: controller,
|
||||
separatorBuilder: (context, index) =>
|
||||
Container(
|
||||
|
|
|
@ -44,7 +44,7 @@ class AccountTile extends StatelessWidget {
|
|||
),
|
||||
);
|
||||
|
||||
return isCurrent ? cell : Slidable(
|
||||
return Slidable(
|
||||
key: Key(accountName),
|
||||
child: cell,
|
||||
actionPane: SlidableDrawerActionPane(),
|
||||
|
|
|
@ -132,13 +132,7 @@ class ReceivePage extends BasePage {
|
|||
isLight: currentTheme.type == ThemeType.light),
|
||||
),
|
||||
Observer(
|
||||
builder: (_) => ClipRRect(
|
||||
borderRadius: BorderRadius.only(
|
||||
topLeft: Radius.circular(30),
|
||||
topRight: Radius.circular(30)),
|
||||
child: Container(
|
||||
color: Theme.of(context).textTheme.display2.decorationColor,
|
||||
child: ListView.separated(
|
||||
builder: (_) => ListView.separated(
|
||||
padding: EdgeInsets.all(0),
|
||||
separatorBuilder: (context, _) => Container(
|
||||
height: 1, color: Theme.of(context).dividerColor),
|
||||
|
@ -213,7 +207,7 @@ class ReceivePage extends BasePage {
|
|||
topRight: Radius.circular(30)),
|
||||
child: cell,
|
||||
);
|
||||
})))),
|
||||
})),
|
||||
],
|
||||
),
|
||||
));
|
||||
|
|
|
@ -70,9 +70,9 @@ class AddressCell extends StatelessWidget {
|
|||
),
|
||||
));
|
||||
|
||||
return (isCurrent || isPrimary)
|
||||
? cell
|
||||
: Slidable(
|
||||
return Container(
|
||||
color: backgroundColor,
|
||||
child: Slidable(
|
||||
key: Key(address),
|
||||
actionPane: SlidableDrawerActionPane(),
|
||||
child: cell,
|
||||
|
@ -82,6 +82,6 @@ class AddressCell extends StatelessWidget {
|
|||
color: Colors.blue,
|
||||
icon: Icons.edit,
|
||||
onTap: () => onEdit?.call())
|
||||
]);
|
||||
]));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue