style: weitere flutter-analyze Infos beheben
Ungenutzte Imports (dart:typed_data, flutter/services.dart), unnötige String-Interpolations-Klammern, führender Unterstrich bei lokaler Funktion, fehlende Blockklammern bei if-Statements und SCREAMING_CASE-Konstanten in clipboard_image.dart auf lowerCamelCase umbenannt. Rein mechanisch, keine Verhaltensänderung. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,8 +7,8 @@ import 'package:image/image.dart' as img;
|
||||
|
||||
// ── Windows constants ────────────────────────────────────────────────────────
|
||||
|
||||
const _CF_DIB = 8;
|
||||
const _CF_DIBV4 = 20;
|
||||
const _cfDib = 8;
|
||||
const _cfDibV4 = 20;
|
||||
|
||||
// ── Native function typedefs ─────────────────────────────────────────────────
|
||||
|
||||
@@ -94,7 +94,7 @@ Uint8List? _readClipboardImage() {
|
||||
}
|
||||
|
||||
// 2. Try CF_DIBV4 then CF_DIB — convert DIB to PNG via the image package
|
||||
for (final fmt in [_CF_DIBV4, _CF_DIB]) {
|
||||
for (final fmt in [_cfDibV4, _cfDib]) {
|
||||
if (isFormatAvailable(fmt) != 0) {
|
||||
final dibBytes = _readGlobalBytes(
|
||||
getClipboardData(fmt), globalSize, globalLock, globalUnlock);
|
||||
|
||||
Reference in New Issue
Block a user