mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
8 lines
190 B
Dart
8 lines
190 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
extension ImageExtension on num {
|
|
int cacheSize(BuildContext context) {
|
|
return (this * MediaQuery.of(context).devicePixelRatio).round();
|
|
}
|
|
}
|