mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
51 lines
1.1 KiB
Dart
51 lines
1.1 KiB
Dart
/*
|
|
* 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';
|
|
import '../utilities/assets.dart';
|
|
import 'dialogs/frost/frost_step_explanation_dialog.dart';
|
|
|
|
class FrostMascot extends StatelessWidget {
|
|
final String title;
|
|
final String body;
|
|
const FrostMascot({
|
|
super.key,
|
|
this.onPressed,
|
|
required this.title,
|
|
required this.body,
|
|
});
|
|
|
|
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,
|
|
builder: (context) => FrostStepExplanationDialog(
|
|
title: title,
|
|
body: body,
|
|
),
|
|
);
|
|
},
|
|
child: Image(
|
|
image: AssetImage(
|
|
Assets.png.mascot,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|