mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 19:26:37 +00:00
paynym desktop search button
This commit is contained in:
parent
c4e5e9e8b6
commit
a6cc955090
1 changed files with 43 additions and 0 deletions
43
lib/widgets/desktop/paynym_search_button.dart
Normal file
43
lib/widgets/desktop/paynym_search_button.dart
Normal file
|
@ -0,0 +1,43 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||
|
||||
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,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue