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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Material(
alignment: Alignment.centerRight, color: Colors.transparent,
width: 25, child: IconButton(
child: TextButton( padding: EdgeInsets.zero,
//highlightColor: Colors.transparent, constraints: BoxConstraints(),
//splashColor: Colors.transparent, highlightColor: Colors.transparent,
//padding: EdgeInsets.all(0), splashColor: Colors.transparent,
iconSize: 25,
onPressed: onPressed, onPressed: onPressed,
child: Image.asset( icon: Image.asset(
asset, asset,
color: Theme.of(context).accentTextTheme!.headline2!.backgroundColor!, color: Theme.of(context).accentTextTheme!.headline2!.backgroundColor!,
), ),