uncomment button height

pull/1476/head
ggurdin 1 year ago
parent a2513c7bd4
commit 25251ae613
No known key found for this signature in database
GPG Key ID: A01CB41737CBB478

@ -86,33 +86,30 @@ class PressableButtonState extends State<PressableButton>
onTapDown: _onTapDown, onTapDown: _onTapDown,
onTapUp: _onTapUp, onTapUp: _onTapUp,
onTapCancel: _onTapCancel, onTapCancel: _onTapCancel,
child: Container( child: Stack(
decoration: BoxDecoration(border: Border.all(color: Colors.green)), alignment: Alignment.bottomCenter,
child: Stack( children: [
alignment: Alignment.bottomCenter, Container(
children: [ width: widget.width,
Container( height: widget.height,
width: widget.width, decoration: BoxDecoration(
// height: widget.height, color: Color.alphaBlend(
decoration: BoxDecoration( Colors.black.withOpacity(0.25),
color: Color.alphaBlend( widget.color,
Colors.black.withOpacity(0.25),
widget.color,
),
borderRadius: widget.borderRadius,
), ),
borderRadius: widget.borderRadius,
), ),
AnimatedBuilder( ),
animation: _tweenAnimation, AnimatedBuilder(
builder: (context, _) { animation: _tweenAnimation,
return Positioned( builder: (context, _) {
bottom: widget.depressed ? 0 : _tweenAnimation.value, return Positioned(
child: widget.child, bottom: widget.depressed ? 0 : _tweenAnimation.value,
); child: widget.child,
}, );
), },
], ),
), ],
), ),
); );
} }

Loading…
Cancel
Save