fix CakePay icon (#546)

Serhii committed Oct 20, 2022 at 01:19 UTC c7ea9d52eec689c40a8aa1939d8d823e2b7ec990
1 file changed +9 -8
lib/src/screens/ionia/cards/ionia_manage_cards_page.dart
+9 -8
@@ -318,15 +318,16 @@ class _TrailingIcon extends StatelessWidget {
318
319 @override
320 Widget build(BuildContext context) {
321 - return Container(
322 - alignment: Alignment.centerRight,
323 - width: 25,
324 - child: TextButton(
325 - //highlightColor: Colors.transparent,
326 - //splashColor: Colors.transparent,
327 - //padding: EdgeInsets.all(0),
321 + return Material(
322 + color: Colors.transparent,
323 + child: IconButton(
324 + padding: EdgeInsets.zero,
325 + constraints: BoxConstraints(),
326 + highlightColor: Colors.transparent,
327 + splashColor: Colors.transparent,
328 + iconSize: 25,
329 onPressed: onPressed,
329 - child: Image.asset(
330 + icon: Image.asset(
331 asset,
332 color: Theme.of(context).accentTextTheme!.headline2!.backgroundColor!,
333 ),