2022-07-01 10:17:09 +00:00
|
|
|
import 'package:cake_wallet/palette.dart';
|
2020-07-28 16:03:34 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class AlertCloseButton extends StatelessWidget {
|
2022-07-01 10:17:09 +00:00
|
|
|
AlertCloseButton({this.image});
|
2020-07-28 16:03:34 +00:00
|
|
|
|
|
|
|
final Image image;
|
|
|
|
|
2022-07-01 10:17:09 +00:00
|
|
|
final closeButton = Image.asset(
|
|
|
|
'assets/images/close.png',
|
|
|
|
color: Palette.darkBlueCraiola,
|
|
|
|
);
|
|
|
|
|
2020-07-28 16:03:34 +00:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Positioned(
|
2020-09-28 15:47:43 +00:00
|
|
|
bottom: 60,
|
2020-07-28 16:03:34 +00:00
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () => Navigator.of(context).pop(),
|
|
|
|
child: Container(
|
|
|
|
height: 42,
|
|
|
|
width: 42,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white,
|
|
|
|
shape: BoxShape.circle
|
|
|
|
),
|
|
|
|
child: Center(
|
2022-07-01 10:17:09 +00:00
|
|
|
child: image ?? closeButton,
|
2020-07-28 16:03:34 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|