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:
Bernd Steckmeister
2026-07-03 06:32:50 +02:00
parent 99f10c5210
commit 2395db50be
7 changed files with 49 additions and 35 deletions
+3 -3
View File
@@ -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);