chore: pre-commit ci hook, dart format

This commit is contained in:
edde746
2026-04-18 12:40:35 +02:00
parent 2bd9e6655f
commit 3da51f9d64
128 changed files with 2056 additions and 2048 deletions
@@ -104,7 +104,10 @@ class _NotInSessionViewState extends State<_NotInSessionView> {
final client = HttpClient();
client.connectionTimeout = const Duration(seconds: 5);
final request = await client.getUrl(Uri.parse(WatchTogetherPeerService.healthUrlFor(_customRelayUrl)));
final response = await request.close().namedTimeout(const Duration(seconds: 5), operation: 'WatchTogether health check');
final response = await request.close().namedTimeout(
const Duration(seconds: 5),
operation: 'WatchTogether health check',
);
final body = await response.transform(const SystemEncoding().decoder).join();
client.close();
if (!mounted) return;
@@ -194,14 +197,16 @@ class _NotInSessionViewState extends State<_NotInSessionView> {
child: Text(t.watchTogether.recentRooms, style: theme.textTheme.titleSmall),
),
const SizedBox(height: 8),
..._recentRooms.map((room) => _RecentRoomTile(
room: room,
isBusy: _isBusy,
isEntering: _enteringRoomCode == room.code,
onTap: () => _enterRoom(room),
onRename: () => _renameRoom(room),
onRemove: () => _removeRoom(room),
)),
..._recentRooms.map(
(room) => _RecentRoomTile(
room: room,
isBusy: _isBusy,
isEntering: _enteringRoomCode == room.code,
onTap: () => _enterRoom(room),
onRename: () => _renameRoom(room),
onRemove: () => _removeRoom(room),
),
),
],
],
),
@@ -385,12 +390,12 @@ class _RecentRoomTile extends StatelessWidget {
: const Icon(Symbols.meeting_room_rounded),
title: Text(title, maxLines: 1, overflow: TextOverflow.ellipsis),
subtitle: room.name != null
? Text(room.code, style: TextStyle(fontFamily: 'monospace', color: theme.colorScheme.onSurfaceVariant))
? Text(
room.code,
style: TextStyle(fontFamily: 'monospace', color: theme.colorScheme.onSurfaceVariant),
)
: null,
trailing: IconButton(
icon: const Icon(Symbols.more_vert_rounded),
onPressed: () => _showActions(context),
),
trailing: IconButton(icon: const Icon(Symbols.more_vert_rounded), onPressed: () => _showActions(context)),
onTap: isBusy ? null : onTap,
),
),