2024-03-14 18:23:41 +00:00
|
|
|
/*
|
|
|
|
* This file is part of Stack Wallet.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2023 Cypher Stack
|
|
|
|
* All Rights Reserved.
|
|
|
|
* The code is distributed under GPLv3 license, see LICENSE file for details.
|
|
|
|
* Generated by Cypher Stack on 2023-05-26
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
2024-05-23 00:37:06 +00:00
|
|
|
import '../utilities/assets.dart';
|
|
|
|
import 'dialogs/frost/frost_step_explanation_dialog.dart';
|
2024-03-14 18:23:41 +00:00
|
|
|
|
|
|
|
class FrostMascot extends StatelessWidget {
|
2024-03-15 11:26:50 +00:00
|
|
|
final String title;
|
|
|
|
final String body;
|
2024-04-25 14:51:54 +00:00
|
|
|
const FrostMascot({
|
2024-03-15 11:26:50 +00:00
|
|
|
super.key,
|
2024-04-25 14:51:54 +00:00
|
|
|
this.onPressed,
|
|
|
|
required this.title,
|
|
|
|
required this.body,
|
2024-03-15 11:26:50 +00:00
|
|
|
});
|
2024-03-14 18:23:41 +00:00
|
|
|
|
|
|
|
final VoidCallback? onPressed;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Padding(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
right: 24,
|
|
|
|
),
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () async {
|
|
|
|
await showDialog<void>(
|
|
|
|
context: context,
|
2024-04-25 14:51:54 +00:00
|
|
|
builder: (context) => FrostStepExplanationDialog(
|
|
|
|
title: title,
|
|
|
|
body: body,
|
|
|
|
),
|
2024-03-14 18:23:41 +00:00
|
|
|
);
|
|
|
|
},
|
|
|
|
child: Image(
|
|
|
|
image: AssetImage(
|
|
|
|
Assets.png.mascot,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|