Run dart format lib

This commit is contained in:
2024-12-19 12:26:28 +01:00
parent 50ae080841
commit 013f318df7
6 changed files with 40 additions and 29 deletions

View File

@@ -8,7 +8,7 @@ import 'package:gergle/player_ui/main.dart';
import 'package:gergle/state/connection_state_bloc.dart';
import 'package:gergle/state/player_state_bloc.dart';
class PlayerUIAppBar{
class PlayerUIAppBar {
static AppBar appbar(BuildContext context) {
return AppBar(
title: const Text('Gergle'),
@@ -70,14 +70,16 @@ class PlayerUIAppBar{
connectionStateBloc.add(Connect(value));
},
),
playerBlocBuilder(buildProps: (p) => [p.isPausedForCache], builder: (context, state) {
// TODO: why is the server not sending paused-for-cache events?
if (state.isPausedForCache) {
return const CircularProgressIndicator();
} else {
return const SizedBox.shrink();
}
}),
playerBlocBuilder(
buildProps: (p) => [p.isPausedForCache],
builder: (context, state) {
// TODO: why is the server not sending paused-for-cache events?
if (state.isPausedForCache) {
return const CircularProgressIndicator();
} else {
return const SizedBox.shrink();
}
}),
IconButton(
icon: const Icon(Icons.settings),
onPressed: () {
@@ -128,4 +130,4 @@ class PlayerUIAppBar{
},
);
}
}
}