Cw 53 allow renaming of currently selected account and subaddress (#291)

* fixed address cell background

* fixed account title padding

* fixed format
wownero
Serhii 2 years ago committed by GitHub
parent 3f19564da4
commit 23913c01dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -82,6 +82,7 @@ class MoneroAccountListPage extends StatelessWidget {
alignment: Alignment.center, alignment: Alignment.center,
children: <Widget>[ children: <Widget>[
ListView.separated( ListView.separated(
padding: EdgeInsets.zero,
controller: controller, controller: controller,
separatorBuilder: (context, index) => separatorBuilder: (context, index) =>
Container( Container(

@ -44,7 +44,7 @@ class AccountTile extends StatelessWidget {
), ),
); );
return isCurrent ? cell : Slidable( return Slidable(
key: Key(accountName), key: Key(accountName),
child: cell, child: cell,
actionPane: SlidableDrawerActionPane(), actionPane: SlidableDrawerActionPane(),

@ -132,13 +132,7 @@ class ReceivePage extends BasePage {
isLight: currentTheme.type == ThemeType.light), isLight: currentTheme.type == ThemeType.light),
), ),
Observer( Observer(
builder: (_) => ClipRRect( builder: (_) => ListView.separated(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(30),
topRight: Radius.circular(30)),
child: Container(
color: Theme.of(context).textTheme.display2.decorationColor,
child: ListView.separated(
padding: EdgeInsets.all(0), padding: EdgeInsets.all(0),
separatorBuilder: (context, _) => Container( separatorBuilder: (context, _) => Container(
height: 1, color: Theme.of(context).dividerColor), height: 1, color: Theme.of(context).dividerColor),
@ -213,7 +207,7 @@ class ReceivePage extends BasePage {
topRight: Radius.circular(30)), topRight: Radius.circular(30)),
child: cell, child: cell,
); );
})))), })),
], ],
), ),
)); ));

@ -70,9 +70,9 @@ class AddressCell extends StatelessWidget {
), ),
)); ));
return (isCurrent || isPrimary) return Container(
? cell color: backgroundColor,
: Slidable( child: Slidable(
key: Key(address), key: Key(address),
actionPane: SlidableDrawerActionPane(), actionPane: SlidableDrawerActionPane(),
child: cell, child: cell,
@ -82,6 +82,6 @@ class AddressCell extends StatelessWidget {
color: Colors.blue, color: Colors.blue,
icon: Icons.edit, icon: Icons.edit,
onTap: () => onEdit?.call()) onTap: () => onEdit?.call())
]); ]));
} }
} }

Loading…
Cancel
Save