Skip to content

Commit 9f3c072

Browse files
committed
Lint
1 parent 2d75a52 commit 9f3c072

5 files changed

Lines changed: 11 additions & 21 deletions

File tree

example/lib/features/file_service.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ class _FileServiceState extends State<FileService> {
414414
top: 20,
415415
left: 0,
416416
right: 0,
417-
child: buildProgressBar(
418-
'Uploading:', uploadDone, uploadPercent),
417+
child:
418+
buildProgressBar('Uploading:', uploadDone, uploadPercent),
419419
),
420420

421421
// Downloading progress bar
@@ -447,8 +447,7 @@ class _FileServiceState extends State<FileService> {
447447
top: 20,
448448
left: 0,
449449
right: 0,
450-
child: buildProgressBar(
451-
'Deleting:', deleteDone, deletePercent),
450+
child: buildProgressBar('Deleting:', deleteDone, deletePercent),
452451
),
453452

454453
// Navigate back to demo page

example/lib/features/permission_callback_demo.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,5 +551,4 @@ demo:exampleData$fileNumber
551551
),
552552
);
553553
}
554-
555554
}

example/lib/widgets/file_service_sections.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ List<Widget> buildUploadSectionUI({
108108
controller: remoteFolderController,
109109
enabled: !(uploadInProgress || uploadDone),
110110
decoration: const InputDecoration(
111-
hintText:
112-
'(Optional) save to folder in POD, e.g. dir1/dir2/',
111+
hintText: '(Optional) save to folder in POD, e.g. dir1/dir2/',
113112
hintStyle: TextStyle(
114113
color: Colors.brown,
115114
fontStyle: FontStyle.italic,
@@ -274,8 +273,7 @@ List<Widget> buildDownloadSharedSectionUI({
274273
style: const TextStyle(color: Colors.blue),
275274
),
276275
smallGapH,
277-
if (downloadSharedDone)
278-
const Icon(Icons.done, color: Colors.green),
276+
if (downloadSharedDone) const Icon(Icons.done, color: Colors.green),
279277
],
280278
),
281279
smallGapV,

example/lib/widgets/home_sections.dart

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,9 @@ List<Widget> buildLoginManagementSection(
7777
var deleteMsg = '';
7878

7979
if (deleteRes) {
80-
deleteMsg =
81-
'Successfully forgot remote solid server login info';
80+
deleteMsg = 'Successfully forgot remote solid server login info';
8281
} else {
83-
deleteMsg =
84-
'Failed to forget login info. Try again in a while';
82+
deleteMsg = 'Failed to forget login info. Try again in a while';
8583
}
8684

8785
await showDialog(
@@ -188,8 +186,7 @@ List<Widget> buildPermissionSection(
188186
),
189187
smallGapV,
190188
ElevatedButton(
191-
child: const Text(
192-
'Add/Delete Permissions from any Resource'),
189+
child: const Text('Add/Delete Permissions from any Resource'),
193190
onPressed: () async {
194191
final loggedIn = await loginIfRequired(
195192
context,
@@ -249,8 +246,7 @@ List<Widget> buildPermissionSection(
249246
),
250247
smallGapV,
251248
ElevatedButton(
252-
child: const Text(
253-
'View ALL Resources your WebID has access to'),
249+
child: const Text('View ALL Resources your WebID has access to'),
254250
onPressed: () async {
255251
final loggedIn = await loginIfRequired(
256252
context,
@@ -339,8 +335,7 @@ List<Widget> buildSetupWizardSection(
339335
),
340336
);
341337
},
342-
child: const Text(
343-
'Show Solid Pod Setup Wizard (Using Real Component)'),
338+
child: const Text('Show Solid Pod Setup Wizard (Using Real Component)'),
344339
),
345340
smallGapV,
346341
];

example/lib/widgets/permission_demo_widgets.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ Widget buildDemoHeaderSection() {
8787
children: [
8888
Row(
8989
children: [
90-
Icon(Icons.lightbulb_outline,
91-
color: Colors.blue[700], size: 28),
90+
Icon(Icons.lightbulb_outline, color: Colors.blue[700], size: 28),
9291
const SizedBox(width: 12),
9392
const Text(
9493
'Why Use onPermissionGranted Callback?',

0 commit comments

Comments
 (0)