|
@@ -48,7 +48,7 @@ class _FaceWidgetState extends State<FaceWidget> {
|
|
|
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
- if (Platform.isIOS || Platform.isAndroid) {
|
|
|
+ if (Platform.isIOS) {
|
|
|
return FutureBuilder<Uint8List?>(
|
|
|
future: getFaceCrop(),
|
|
|
builder: (context, snapshot) {
|
|
@@ -181,18 +181,6 @@ class _FaceWidgetState extends State<FaceWidget> {
|
|
|
style: Theme.of(context).textTheme.bodySmall,
|
|
|
maxLines: 1,
|
|
|
),
|
|
|
- if (kDebugMode)
|
|
|
- Text(
|
|
|
- 'V: ${widget.face.visibility}',
|
|
|
- style: Theme.of(context).textTheme.bodySmall,
|
|
|
- maxLines: 1,
|
|
|
- ),
|
|
|
- if (kDebugMode)
|
|
|
- Text(
|
|
|
- 'A: ${widget.face.area()}',
|
|
|
- style: Theme.of(context).textTheme.bodySmall,
|
|
|
- maxLines: 1,
|
|
|
- ),
|
|
|
// if (kDebugMode)
|
|
|
// if (highlight)
|
|
|
// const Text(
|
|
@@ -316,6 +304,24 @@ class _FaceWidgetState extends State<FaceWidget> {
|
|
|
style: Theme.of(context).textTheme.bodySmall,
|
|
|
maxLines: 1,
|
|
|
),
|
|
|
+ if (kDebugMode)
|
|
|
+ Text(
|
|
|
+ 'B: ${widget.face.blur.toStringAsFixed(0)}',
|
|
|
+ style: Theme.of(context).textTheme.bodySmall,
|
|
|
+ maxLines: 1,
|
|
|
+ ),
|
|
|
+ if (kDebugMode)
|
|
|
+ Text(
|
|
|
+ 'D: ${widget.face.detection.getFaceDirection().toDirectionString()}',
|
|
|
+ style: Theme.of(context).textTheme.bodySmall,
|
|
|
+ maxLines: 1,
|
|
|
+ ),
|
|
|
+ if (kDebugMode)
|
|
|
+ Text(
|
|
|
+ 'Sideways: ${widget.face.detection.faceIsSideways().toString()}',
|
|
|
+ style: Theme.of(context).textTheme.bodySmall,
|
|
|
+ maxLines: 1,
|
|
|
+ ),
|
|
|
],
|
|
|
),
|
|
|
);
|