Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ppupha committed Feb 20, 2024
1 parent 4622a5e commit ce412af
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
30 changes: 14 additions & 16 deletions lib/screen/detail/artwork_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -487,22 +487,20 @@ class _ArtworkDetailPageState extends State<ArtworkDetailPage>
),
iconOnProcessing: ValueListenableBuilder(
valueListenable: downloadProgress,
builder: (context, double value, child) {
return SizedBox(
height: 20,
width: 20,
child: CircularProgressIndicator(
value: value <= 0 ? null : value,
valueColor: value <= 0
? null
: AlwaysStoppedAnimation<Color>(Colors.blue),
backgroundColor:
value <= 0 ? null : AppColor.disabledColor,
color: AppColor.disabledColor,
strokeWidth: 2,
),
);
}),
builder: (context, double value, child) => SizedBox(
height: 20,
width: 20,
child: CircularProgressIndicator(
value: value <= 0 ? null : value,
valueColor: value <= 0
? null
: const AlwaysStoppedAnimation<Color>(Colors.blue),
backgroundColor:
value <= 0 ? null : AppColor.disabledColor,
color: AppColor.disabledColor,
strokeWidth: 2,
),
)),
onTap: () async {
try {
final file = await _feralfileService.downloadFeralfileArtwork(
Expand Down
2 changes: 1 addition & 1 deletion lib/util/download_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class DownloadHelper {
log.info('Downloaded part $i/$numParts');
});

final batchSize = 10;
const batchSize = 10;
final batches = <List<Future<void>>>[];
List<Future<void>> batch = <Future<void>>[];
for (final future in downloadFeatures) {
Expand Down

0 comments on commit ce412af

Please sign in to comment.