build: Update to flutter 3.27
This commit is contained in:
parent
21196a108f
commit
dbe8c1b9f4
20 changed files with 81 additions and 152 deletions
14
lib/utils/color_value.dart
Normal file
14
lib/utils/color_value.dart
Normal 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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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)),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue