Skip to content

Commit

Permalink
chore: format dart code
Browse files Browse the repository at this point in the history
  • Loading branch information
sboh1214 authored and s8ngyu committed Nov 6, 2024
1 parent 7c0b94e commit 111930c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/pages/main_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ class _MainPageState extends State<MainPage> {
final cookies = await cookieManager.getCookies('https://otl.sparcs.org');
for (var cookie in cookies) {
if (cookie.name == 'sessionid') {
await channel.invokeMethod("flutterToWatch", {"method": "sendSessionID", "data": cookie.value});
await channel.invokeMethod("flutterToWatch",
{"method": "sendSessionID", "data": cookie.value});

Check warning on line 91 in lib/pages/main_page.dart

View check run for this annotation

Codecov / codecov/patch

lib/pages/main_page.dart#L88-L91

Added lines #L88 - L91 were not covered by tests
}
}
final infoModel = InfoModel();
await infoModel.getInfo();
if (infoModel.hasData) {
await channel.invokeMethod("flutterToWatch", {"method": "sendUserID", "data": infoModel.user.id.toString()});
await channel.invokeMethod("flutterToWatch",
{"method": "sendUserID", "data": infoModel.user.id.toString()});

Check warning on line 98 in lib/pages/main_page.dart

View check run for this annotation

Codecov / codecov/patch

lib/pages/main_page.dart#L94-L98

Added lines #L94 - L98 were not covered by tests
}
} catch (exception) {
print(exception);

Check warning on line 101 in lib/pages/main_page.dart

View check run for this annotation

Codecov / codecov/patch

lib/pages/main_page.dart#L101

Added line #L101 was not covered by tests
Expand Down

0 comments on commit 111930c

Please sign in to comment.