chore: pre-commit ci hook, dart format
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user