build: Update to flutter 3.27

This commit is contained in:
Krille 2024-12-12 14:12:04 +01:00
commit dbe8c1b9f4
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
20 changed files with 81 additions and 152 deletions

View file

@ -0,0 +1,14 @@
import 'package:flutter/widgets.dart';
extension ColorValue on Color {
int get hexValue {
return _floatToInt8(a) << 24 |
_floatToInt8(r) << 16 |
_floatToInt8(g) << 8 |
_floatToInt8(b) << 0;
}
static int _floatToInt8(double x) {
return (x * 255.0).round() & 0xff;
}
}

View file

@ -79,7 +79,7 @@ class _VideoRendererState extends State<VideoRenderer> {
filterQuality: FilterQuality.medium,
objectFit: widget.fit,
placeholderBuilder: (_) =>
Container(color: Colors.white.withOpacity(0.18)),
Container(color: Colors.white.withAlpha(45)),
);
},
);