Skip to content

Commit d88c8bd

Browse files
author
cdawei
committed
Fix lint errors
1 parent 03d651e commit d88c8bd

File tree

5 files changed

+37
-24
lines changed

5 files changed

+37
-24
lines changed

lib/src/solid/grant_permission_ui.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,5 +578,6 @@ class GrantPermissionUiState extends State<GrantPermissionUi>
578578
? snapshot.data!.first == SolidFunctionCallStatus.notLoggedIn
579579
? widget.child
580580
: _buildPermPage(context, snapshot.data)
581-
: Scaffold(body: loadingScreen(normalLoadingScreenHeight)));
581+
: Scaffold(body: loadingScreen(normalLoadingScreenHeight)),
582+
);
582583
}

lib/src/solid/utils/key_helper.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ Future<String> readPubKeyFile() async {
163163
/// Read file `shared/shared-keys.ttl` to get encrypted individual keys
164164
/// of shared resources.
165165
Future<Map<String, SharedIndKeyRecord>> readSharedIndKey(
166-
String privateKey) async {
166+
String privateKey,
167+
) async {
167168
final sharedIndKeyUrl = await getFileUrl(await getSharedKeyFilePath());
168169
final sharedIndKeyMap = <String, SharedIndKeyRecord>{};
169170
Encrypter? encrypter;

lib/src/solid/utils/key_manager.dart

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,11 @@ class KeyManager {
399399
);
400400
_indKeyMap![resourceUrl] = record;
401401

402-
final query = await getIndKeyQuery(record,
403-
operation: SparqlOperation.insert, isFile: isFile);
402+
final query = await getIndKeyQuery(
403+
record,
404+
operation: SparqlOperation.insert,
405+
isFile: isFile,
406+
);
404407
_indKeyUrl ??= await getFileUrl(await getIndKeyPath());
405408

406409
await updateFileByQuery(_indKeyUrl!, query);
@@ -421,15 +424,19 @@ class KeyManager {
421424
final record = _indKeyMap!.remove(resourceUrl);
422425
assert(record != null);
423426

424-
final query = await getIndKeyQuery(record!,
425-
operation: SparqlOperation.delete, isFile: isFile);
427+
final query = await getIndKeyQuery(
428+
record!,
429+
operation: SparqlOperation.delete,
430+
isFile: isFile,
431+
);
426432
_indKeyUrl ??= await getFileUrl(await getIndKeyPath());
427433
await updateFileByQuery(_indKeyUrl!, query);
428434

429435
debugPrint('Deleted $record');
430436
} else {
431437
debugPrint(
432-
'Individual key for "$resourcePath" does not exist, do nothing.');
438+
'Individual key for "$resourcePath" does not exist, do nothing.',
439+
);
433440
}
434441
}
435442

lib/src/solid/utils/permission_helper.dart

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ const failureMsg =
7878
'Permission granting failed. Check console logs for details. Common issues: resource not found, invalid WebID format, or network connectivity.';
7979

8080
void printFailure(String fileName) => debugPrint(
81-
'❌ [GrantPermissionUI] Permission granting failed for file: $fileName');
81+
'❌ [GrantPermissionUI] Permission granting failed for file: $fileName',
82+
);
8283

8384
void printRecipients(List<dynamic>? finalList) =>
8485
debugPrint('🎯 [GrantPermissionUI] Recipients: $finalList');
@@ -212,21 +213,22 @@ Scrollbar getScrollbar({
212213

213214
Scrollbar getFormScrollbar(ScrollController controller, Widget permDataTable) =>
214215
getScrollbar(
215-
controller: controller,
216-
direction: Axis.horizontal,
217-
child: Column(
218-
children: [
219-
Row(
220-
children: [
221-
permDataTable,
222-
// Hspace to avoid vertical scrollbar overlap with table
223-
ScrollbarLayout.horizontalGap,
224-
],
225-
),
226-
// Vspace to avoid horizontal scrollbar overlap of table
227-
ScrollbarLayout.verticalGap,
228-
],
229-
));
216+
controller: controller,
217+
direction: Axis.horizontal,
218+
child: Column(
219+
children: [
220+
Row(
221+
children: [
222+
permDataTable,
223+
// Hspace to avoid vertical scrollbar overlap with table
224+
ScrollbarLayout.horizontalGap,
225+
],
226+
),
227+
// Vspace to avoid horizontal scrollbar overlap of table
228+
ScrollbarLayout.verticalGap,
229+
],
230+
),
231+
);
230232

231233
Scrollbar getPageScrollbar(ScrollController controller, Widget form) =>
232234
getScrollbar(

lib/src/solid/utils/push_replacement.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ library;
3131
import 'package:flutter/material.dart';
3232

3333
Future<void> pushReplacement(
34-
BuildContext context, Widget destinationWidget) async {
34+
BuildContext context,
35+
Widget destinationWidget,
36+
) async {
3537
Navigator.pushAndRemoveUntil(
3638
context,
3739
MaterialPageRoute(

0 commit comments

Comments
 (0)