slightly adjust mouse region

This commit is contained in:
julian 2022-11-15 16:29:12 -06:00
parent 3eae7d0fab
commit 1818b00ac6

View file

@ -39,18 +39,18 @@ class _SendReceiveTabMenuState extends State<SendReceiveTabMenu> {
return Row( return Row(
children: [ children: [
Expanded( Expanded(
child: GestureDetector( child: MouseRegion(
onTap: () => _onChanged(0), cursor: SystemMouseCursors.click,
child: Container( child: GestureDetector(
color: Colors.transparent, onTap: () => _onChanged(0),
child: Column( child: Container(
children: [ color: Colors.transparent,
const SizedBox( child: Column(
height: 16, children: [
), const SizedBox(
MouseRegion( height: 16,
cursor: SystemMouseCursors.click, ),
child: Text( Text(
"Send", "Send",
style: style:
STextStyles.desktopTextExtraSmall(context).copyWith( STextStyles.desktopTextExtraSmall(context).copyWith(
@ -63,40 +63,40 @@ class _SendReceiveTabMenuState extends State<SendReceiveTabMenu> {
.textSubtitle1, .textSubtitle1,
), ),
), ),
), const SizedBox(
const SizedBox( height: 19,
height: 19,
),
Container(
height: 2,
decoration: BoxDecoration(
color: _selectedIndex == 0
? Theme.of(context)
.extension<StackColors>()!
.accentColorBlue
: Theme.of(context)
.extension<StackColors>()!
.background,
), ),
), Container(
], height: 2,
decoration: BoxDecoration(
color: _selectedIndex == 0
? Theme.of(context)
.extension<StackColors>()!
.accentColorBlue
: Theme.of(context)
.extension<StackColors>()!
.background,
),
),
],
),
), ),
), ),
), ),
), ),
Expanded( Expanded(
child: GestureDetector( child: MouseRegion(
onTap: () => _onChanged(1), cursor: SystemMouseCursors.click,
child: Container( child: GestureDetector(
color: Colors.transparent, onTap: () => _onChanged(1),
child: Column( child: Container(
children: [ color: Colors.transparent,
const SizedBox( child: Column(
height: 16, children: [
), const SizedBox(
MouseRegion( height: 16,
cursor: SystemMouseCursors.click, ),
child: Text( Text(
"Receive", "Receive",
style: style:
STextStyles.desktopTextExtraSmall(context).copyWith( STextStyles.desktopTextExtraSmall(context).copyWith(
@ -109,23 +109,23 @@ class _SendReceiveTabMenuState extends State<SendReceiveTabMenu> {
.textSubtitle1, .textSubtitle1,
), ),
), ),
), const SizedBox(
const SizedBox( height: 19,
height: 19,
),
Container(
height: 2,
decoration: BoxDecoration(
color: _selectedIndex == 1
? Theme.of(context)
.extension<StackColors>()!
.accentColorBlue
: Theme.of(context)
.extension<StackColors>()!
.background,
), ),
), Container(
], height: 2,
decoration: BoxDecoration(
color: _selectedIndex == 1
? Theme.of(context)
.extension<StackColors>()!
.accentColorBlue
: Theme.of(context)
.extension<StackColors>()!
.background,
),
),
],
),
), ),
), ),
), ),