Skip to content

Commit 1711514

Browse files
dart format . (#329)
1 parent 9603d2a commit 1711514

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

lib/common/sample_data.dart

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ Future<List<ResponseInfo>> downloadSampleDataWithProgress({
3838
final itemId = itemIds[i];
3939
final destinationFile = destinationFiles[i];
4040

41-
final requestUri = Uri.parse('$portal/sharing/rest/content/items/$itemId/data');
41+
final requestUri = Uri.parse(
42+
'$portal/sharing/rest/content/items/$itemId/data',
43+
);
4244
final response = await ArcGISHttpClient.download(
4345
requestUri,
4446
destinationFile.uri,
@@ -47,8 +49,11 @@ Future<List<ResponseInfo>> downloadSampleDataWithProgress({
4749
if (onProgress != null) {
4850
// Calculate progress: completed items + current item progress
4951
final completedItems = i;
50-
final currentItemProgress = truncateTo2Decimals(bytesReceived / (totalBytes ?? 1));
51-
final overallProgress = (completedItems + currentItemProgress) / totalItems;
52+
final currentItemProgress = truncateTo2Decimals(
53+
bytesReceived / (totalBytes ?? 1),
54+
);
55+
final overallProgress =
56+
(completedItems + currentItemProgress) / totalItems;
5257
onProgress(truncateTo2Decimals(overallProgress));
5358
}
5459
},

lib/samples/edit_geometries_with_programmatic_reticle_tool/edit_geometries_with_programmatic_reticle_tool.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class _EditGeometriesWithProgrammaticReticleToolState
138138
// When the hovered element changes, we update the state.
139139
_geometryEditor.onHoveredElementChanged.listen(
140140
(hoveredElement) => setState(() => _hoveredElement = hoveredElement),
141-
);
141+
);
142142
// Listen to changes in canUndo and canRedo in order to enable/disable the UI.
143143
_geometryEditor.onCanUndoChanged.listen(
144144
(canUndo) => setState(() => _geometryEditorCanUndo = canUndo),

tool/generate_new_sample.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ void createNewSampleFile(
115115
print('>A sample file $sampleSnakeName.dart created');
116116
}
117117

118-
final copyright = '''
118+
final copyright =
119+
'''
119120
// Copyright ${DateTime.now().year} Esri
120121
//
121122
// Licensed under the Apache License, Version 2.0 (the "License");

tool/initialize.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ void main(List<String> arguments) async {
3434

3535
Future<void> runDart(List<String> arguments) async {
3636
final command = 'dart ${arguments.join(' ')}';
37-
final executable =
38-
Platform.isWindows
39-
? '${Platform.environment['FLUTTER_ROOT']}\\bin\\dart.bat'
40-
: '${Platform.environment['FLUTTER_ROOT']}/bin/dart';
37+
final executable = Platform.isWindows
38+
? '${Platform.environment['FLUTTER_ROOT']}\\bin\\dart.bat'
39+
: '${Platform.environment['FLUTTER_ROOT']}/bin/dart';
4140
final result = await Process.run(executable, arguments);
4241
print(result.stdout);
4342
print(result.stderr);

0 commit comments

Comments
 (0)