2023-05-26 21:21:16 +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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2023-01-04 18:32:10 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
2024-05-23 00:37:06 +00:00
|
|
|
import '../../themes/stack_colors.dart';
|
|
|
|
import '../../utilities/assets.dart';
|
|
|
|
import '../rounded_container.dart';
|
2023-01-04 18:32:10 +00:00
|
|
|
|
|
|
|
class PaynymSearchButton extends StatefulWidget {
|
|
|
|
const PaynymSearchButton({
|
|
|
|
Key? key,
|
|
|
|
required this.onPressed,
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
final VoidCallback onPressed;
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<PaynymSearchButton> createState() => _PaynymSearchButtonState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _PaynymSearchButtonState extends State<PaynymSearchButton> {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return MouseRegion(
|
|
|
|
cursor: SystemMouseCursors.click,
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: widget.onPressed,
|
|
|
|
child: RoundedContainer(
|
|
|
|
width: 56,
|
|
|
|
height: 56,
|
|
|
|
color:
|
|
|
|
Theme.of(context).extension<StackColors>()!.buttonBackSecondary,
|
|
|
|
child: Center(
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
Assets.svg.search,
|
|
|
|
width: 20,
|
|
|
|
height: 20,
|
|
|
|
color: Theme.of(context).extension<StackColors>()!.textDark,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|