mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-23 11:15:33 +00:00
34 lines
No EOL
798 B
Dart
34 lines
No EOL
798 B
Dart
import 'package:cake_wallet/palette.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class AlertCloseButton extends StatelessWidget {
|
|
AlertCloseButton({this.image});
|
|
|
|
final Image? image;
|
|
|
|
final closeButton = Image.asset(
|
|
'assets/images/close.png',
|
|
color: Palette.darkBlueCraiola,
|
|
);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Positioned(
|
|
bottom: 60,
|
|
child: GestureDetector(
|
|
onTap: () => Navigator.of(context).pop(),
|
|
child: Container(
|
|
height: 42,
|
|
width: 42,
|
|
decoration: BoxDecoration(
|
|
color: Colors.white,
|
|
shape: BoxShape.circle
|
|
),
|
|
child: Center(
|
|
child: image ?? closeButton,
|
|
),
|
|
),
|
|
)
|
|
);
|
|
}
|
|
} |