fix CakePay icon (#546)

This commit is contained in:
Serhii 2022-10-20 01:19:23 +03:00 committed by GitHub
parent 9b4fc8f608
commit c7ea9d52ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,15 +318,16 @@ class _TrailingIcon extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
alignment: Alignment.centerRight,
width: 25,
child: TextButton(
//highlightColor: Colors.transparent,
//splashColor: Colors.transparent,
//padding: EdgeInsets.all(0),
return Material(
color: Colors.transparent,
child: IconButton(
padding: EdgeInsets.zero,
constraints: BoxConstraints(),
highlightColor: Colors.transparent,
splashColor: Colors.transparent,
iconSize: 25,
onPressed: onPressed,
child: Image.asset(
icon: Image.asset(
asset,
color: Theme.of(context).accentTextTheme!.headline2!.backgroundColor!,
),