Add miku box

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-19 13:17:43 +01:00
parent 94e1a77a3c
commit 95d9cc51ee
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 33 additions and 2 deletions

BIN
assets/images/miku_cube.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

View File

@ -112,6 +112,39 @@ class PlayerUi extends StatelessWidget {
const Expanded(flex: 1, child: SizedBox.expand()),
]),
),
Flex(
direction: Axis.horizontal,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
flex: 1,
child: Container(
margin: const EdgeInsets.all(10),
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Theme.of(context).colorScheme.surfaceDim,
blurRadius: 5,
spreadRadius: 2,
offset: const Offset(0, 10),
),
],
borderRadius: BorderRadius.circular(10),
border: Border.all(
color: Theme.of(context).colorScheme.secondary,
width: 10,
),
),
child: Image.asset(
'assets/images/miku_cube.png',
alignment: Alignment.topLeft,
),
),
),
const Expanded(flex: 3, child: SizedBox.expand()),
const Expanded(flex: 1, child: SizedBox.expand()),
],
),
Flex(
direction: Axis.horizontal,
crossAxisAlignment: CrossAxisAlignment.end,
@ -121,7 +154,6 @@ class PlayerUi extends StatelessWidget {
child: Image.asset(
'assets/images/dance2.gif',
alignment: Alignment.bottomCenter,
scale: 1.5,
),
),
const Expanded(flex: 3, child: SizedBox.expand()),
@ -129,7 +161,6 @@ class PlayerUi extends StatelessWidget {
flex: 1,
child: Image.asset(
'assets/images/dance1.webp',
scale: 0.5,
alignment: Alignment.bottomCenter,
),
)