mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-05-03 03:12:18 +00:00
add hover color to desktop new follow button
This commit is contained in:
parent
91696ebb4b
commit
512711183c
1 changed files with 31 additions and 16 deletions
|
@ -27,6 +27,7 @@ import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/copy_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/copy_icon.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/qrcode_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/qrcode_icon.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/share_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/share_icon.dart';
|
||||||
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
import 'package:stackwallet/widgets/toggle.dart';
|
import 'package:stackwallet/widgets/toggle.dart';
|
||||||
|
|
||||||
|
@ -49,6 +50,8 @@ class _PaynymHomeViewState extends ConsumerState<PaynymHomeView> {
|
||||||
int secretCount = 0;
|
int secretCount = 0;
|
||||||
Timer? timer;
|
Timer? timer;
|
||||||
|
|
||||||
|
bool _followButtonHoverState = false;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
timer?.cancel();
|
timer?.cancel();
|
||||||
|
@ -107,22 +110,34 @@ class _PaynymHomeViewState extends ConsumerState<PaynymHomeView> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
trailing: Padding(
|
trailing: Padding(
|
||||||
padding: const EdgeInsets.only(right: 22),
|
padding: const EdgeInsets.only(right: 12),
|
||||||
child: MouseRegion(
|
child: SizedBox(
|
||||||
cursor: SystemMouseCursors.click,
|
height: 56,
|
||||||
child: GestureDetector(
|
child: MouseRegion(
|
||||||
onTap: () {
|
cursor: SystemMouseCursors.click,
|
||||||
showDialog<void>(
|
onEnter: (_) => setState(() {
|
||||||
context: context,
|
_followButtonHoverState = true;
|
||||||
builder: (context) => AddNewPaynymFollowView(
|
}),
|
||||||
walletId: widget.walletId,
|
onExit: (_) => setState(() {
|
||||||
),
|
_followButtonHoverState = false;
|
||||||
);
|
}),
|
||||||
},
|
child: GestureDetector(
|
||||||
child: Container(
|
onTap: () {
|
||||||
color: Colors.transparent,
|
showDialog<void>(
|
||||||
child: Padding(
|
context: context,
|
||||||
padding: const EdgeInsets.all(10.0),
|
builder: (context) => AddNewPaynymFollowView(
|
||||||
|
walletId: widget.walletId,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
child: RoundedContainer(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 24.0),
|
||||||
|
color: _followButtonHoverState
|
||||||
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.highlight
|
||||||
|
: Colors.transparent,
|
||||||
|
radiusMultiplier: 100,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
|
|
Loading…
Reference in a new issue