You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
3.6 KiB
Dart
99 lines
3.6 KiB
Dart
import 'package:diplomaticquarterapp/theme/colors.dart';
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:vital_sign_camera/vital_sign_camera.dart';
|
|
|
|
import 'scan_condition.dart';
|
|
|
|
class ScanConditionChecklist extends StatelessWidget {
|
|
final ScanConditions conditions; // ScanCondition
|
|
|
|
const ScanConditionChecklist({
|
|
Key? key,
|
|
required this.deviceSize,
|
|
required this.conditions, // ScanCondition
|
|
}) : super(key: key);
|
|
|
|
final Size deviceSize;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
height: deviceSize.width*0.4,
|
|
child: Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
|
child: Material(
|
|
color: Colors.black.withOpacity(.4),
|
|
shape:
|
|
RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
TranslationBase.of(context).scanningConditions,
|
|
style: TextStyle(
|
|
fontSize: 15,
|
|
color: CustomColors.accentColor,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
Padding(
|
|
padding: const EdgeInsets.fromLTRB(0, 10, 0, 0),
|
|
child: Row(
|
|
children: [
|
|
Expanded(
|
|
child: Column(
|
|
children: [
|
|
ScanCondition(
|
|
scanConditionName:
|
|
TranslationBase.of(context).lighting,
|
|
isConditionSatisfied: conditions.lighting,
|
|
),
|
|
ScanCondition(
|
|
scanConditionName:
|
|
TranslationBase.of(context).distance,
|
|
isConditionSatisfied: conditions.distance,
|
|
),
|
|
ScanCondition(
|
|
scanConditionName:
|
|
TranslationBase.of(context).centered,
|
|
isConditionSatisfied: conditions.centered,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Column(
|
|
children: [
|
|
ScanCondition(
|
|
scanConditionName:
|
|
TranslationBase.of(context).movement,
|
|
isConditionSatisfied: conditions.movement,
|
|
),
|
|
ScanCondition(
|
|
scanConditionName:
|
|
TranslationBase.of(context).frameRate,
|
|
isConditionSatisfied: conditions.frameRate,
|
|
),
|
|
ScanCondition(
|
|
scanConditionName:
|
|
TranslationBase.of(context).serverReady,
|
|
isConditionSatisfied: conditions.serverReady,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|