File tree Expand file tree Collapse file tree 4 files changed +14
-9
lines changed
samples/edit_geometries_with_programmatic_reticle_tool Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Original file line number Diff line number Diff 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 },
Original file line number Diff line number Diff 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),
Original file line number Diff line number Diff 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");
Original file line number Diff line number Diff line change @@ -34,10 +34,9 @@ void main(List<String> arguments) async {
3434
3535Future <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);
You can’t perform that action at this time.
0 commit comments