feat: improve vertical player design

This commit is contained in:
2025-06-05 12:05:07 +01:00
parent 64655ba21c
commit 3b07f7d073

View File

@ -174,17 +174,17 @@ class _StreamPage extends State<StreamPage> with RouteAware {
Positioned(child: child), Positioned(child: child),
Positioned( Positioned(
child: Container( child: Container(
padding: EdgeInsets.symmetric(horizontal: 5), padding: EdgeInsets.symmetric(horizontal: 5, vertical: 3),
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: LinearGradient( gradient: LinearGradient(
begin: Alignment.bottomCenter, begin: Alignment.topCenter,
end: Alignment.topCenter, end: Alignment.bottomCenter,
colors: [ colors: [
LAYER_0.withAlpha(50),
LAYER_0.withAlpha(200),
LAYER_0.withAlpha(255), LAYER_0.withAlpha(255),
LAYER_0.withAlpha(200),
LAYER_0.withAlpha(10),
], ],
stops: [0.0, 0.2, 1.0], stops: [0.0, 0.7, 1.0],
), ),
), ),
child: Column( child: Column(
@ -200,20 +200,31 @@ class _StreamPage extends State<StreamPage> with RouteAware {
width: mq.size.width, width: mq.size.width,
height: mq.size.height * 0.4, height: mq.size.height * 0.4,
padding: EdgeInsets.symmetric(horizontal: 10), padding: EdgeInsets.symmetric(horizontal: 10),
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
colors: [
LAYER_0.withAlpha(200),
LAYER_0.withAlpha(150),
LAYER_0.withAlpha(0),
],
stops: [0.0, 0.8, 1.0],
),
),
child: ShaderMask( child: ShaderMask(
shaderCallback: (Rect bounds) {
return LinearGradient(
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
colors: [
LAYER_0.withAlpha(255),
LAYER_0.withAlpha(200),
LAYER_0.withAlpha(0),
],
stops: [0.0, 0.8, 1.0],
).createShader(bounds);
},
blendMode: BlendMode.dstIn, blendMode: BlendMode.dstIn,
shaderCallback:
(rect) => LinearGradient(
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
colors: [
LAYER_0.withAlpha(255),
LAYER_0.withAlpha(200),
LAYER_0.withAlpha(0),
],
stops: [0.0, 0.8, 1.0],
).createShader(rect),
child: ChatWidget( child: ChatWidget(
stream: stream, stream: stream,
showGoals: false, showGoals: false,