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

* fixed address cell background * fixed account title padding * fixed format

Serhii committed Mar 15, 2022 at 10:31 UTC 23913c01dce5b0f9c254084fcece1eb725155a04
4 files changed +8 -13
lib/src/screens/monero_accounts/monero_account_list_page.dart
+1
@@ -82,6 +82,7 @@ class MoneroAccountListPage extends StatelessWidget {
82 alignment: Alignment.center,
83 children: <Widget>[
84 ListView.separated(
85 + padding: EdgeInsets.zero,
86 controller: controller,
87 separatorBuilder: (context, index) =>
88 Container(
lib/src/screens/monero_accounts/widgets/account_tile.dart
+1 -1
@@ -44,7 +44,7 @@ class AccountTile extends StatelessWidget {
44 ),
45 );
46
47 - return isCurrent ? cell : Slidable(
47 + return Slidable(
48 key: Key(accountName),
49 child: cell,
50 actionPane: SlidableDrawerActionPane(),
lib/src/screens/receive/receive_page.dart
+2 -8
@@ -132,13 +132,7 @@ class ReceivePage extends BasePage {
132 isLight: currentTheme.type == ThemeType.light),
133 ),
134 Observer(
135 - builder: (_) => ClipRRect(
136 - borderRadius: BorderRadius.only(
137 - topLeft: Radius.circular(30),
138 - topRight: Radius.circular(30)),
139 - child: Container(
140 - color: Theme.of(context).textTheme.display2.decorationColor,
141 - child: ListView.separated(
135 + builder: (_) => ListView.separated(
136 padding: EdgeInsets.all(0),
137 separatorBuilder: (context, _) => Container(
138 height: 1, color: Theme.of(context).dividerColor),
@@ -213,7 +207,7 @@ class ReceivePage extends BasePage {
207 topRight: Radius.circular(30)),
208 child: cell,
209 );
216 - })))),
210 + })),
211 ],
212 ),
213 ));
lib/src/screens/receive/widgets/address_cell.dart
+4 -4
@@ -70,9 +70,9 @@ class AddressCell extends StatelessWidget {
70 ),
71 ));
72
73 - return (isCurrent || isPrimary)
74 - ? cell
75 - : Slidable(
73 + return Container(
74 + color: backgroundColor,
75 + child: Slidable(
76 key: Key(address),
77 actionPane: SlidableDrawerActionPane(),
78 child: cell,
@@ -82,6 +82,6 @@ class AddressCell extends StatelessWidget {
82 color: Colors.blue,
83 icon: Icons.edit,
84 onTap: () => onEdit?.call())
85 - ]);
85 + ]));
86 }
87 }