|
@@ -109,52 +109,70 @@ class _ResultInfoState extends State<ResultInfo> {
|
|
|
),
|
|
|
Container(
|
|
|
margin: const EdgeInsets.symmetric(
|
|
|
- vertical: 15,
|
|
|
+ vertical: 5,
|
|
|
),
|
|
|
padding: const EdgeInsets.only(right: 8),
|
|
|
- child: SizedBox(
|
|
|
- width: 70,
|
|
|
- height: 70,
|
|
|
- child: Stack(
|
|
|
- children: [
|
|
|
- SizedBox(
|
|
|
- width: 70,
|
|
|
- height: 70,
|
|
|
- child: Obx(() {
|
|
|
- final aiDetected = widget.aiDetectedObject[
|
|
|
- aiPatintController.state.aiResultIndex];
|
|
|
- return CircularProgressIndicator(
|
|
|
- valueColor: AlwaysStoppedAnimation(
|
|
|
- _buildAITextColor(
|
|
|
- aiDetected.label,
|
|
|
- ),
|
|
|
- ),
|
|
|
- backgroundColor: Colors.grey,
|
|
|
- value: aiDetected.confidence,
|
|
|
- );
|
|
|
- }),
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ Text(
|
|
|
+ i18nBook.measure.possibility.t,
|
|
|
+ style: const TextStyle(
|
|
|
+ color: Colors.grey,
|
|
|
),
|
|
|
- Center(
|
|
|
- child: SizedBox(
|
|
|
- width: 45,
|
|
|
- height: 45,
|
|
|
- child: Obx(() {
|
|
|
- final confidence = widget
|
|
|
- .aiDetectedObject[
|
|
|
- aiPatintController.state.aiResultIndex]
|
|
|
- .confidence;
|
|
|
- return Text(
|
|
|
- i18nBook.measure.possibility.t +
|
|
|
- '${(confidence * 100).toStringAsFixed(1)}%',
|
|
|
- style: const TextStyle(
|
|
|
- color: Colors.white,
|
|
|
+ ),
|
|
|
+ const SizedBox(
|
|
|
+ height: 8,
|
|
|
+ ),
|
|
|
+ SizedBox(
|
|
|
+ width: 70,
|
|
|
+ height: 70,
|
|
|
+ child: Stack(
|
|
|
+ children: [
|
|
|
+ SizedBox(
|
|
|
+ width: 70,
|
|
|
+ height: 70,
|
|
|
+ child: Obx(() {
|
|
|
+ final aiDetected = widget.aiDetectedObject[
|
|
|
+ aiPatintController.state.aiResultIndex];
|
|
|
+ return CircularProgressIndicator(
|
|
|
+ valueColor: AlwaysStoppedAnimation(
|
|
|
+ _buildAITextColor(
|
|
|
+ aiDetected.label,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ backgroundColor: Colors.grey,
|
|
|
+ value: aiDetected.confidence,
|
|
|
+ );
|
|
|
+ }),
|
|
|
+ ),
|
|
|
+ Center(
|
|
|
+ child: SizedBox(
|
|
|
+ width: 65,
|
|
|
+ height: 45,
|
|
|
+ child: Obx(
|
|
|
+ () {
|
|
|
+ final confidence = widget
|
|
|
+ .aiDetectedObject[aiPatintController
|
|
|
+ .state.aiResultIndex]
|
|
|
+ .confidence;
|
|
|
+ return Center(
|
|
|
+ child: Text(
|
|
|
+ '${(confidence * 100).toStringAsFixed(1)}%',
|
|
|
+ style: const TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
+ fontSize: 18,
|
|
|
+ fontWeight: FontWeight.bold,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ },
|
|
|
),
|
|
|
- );
|
|
|
- }),
|
|
|
- ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
),
|
|
|
- ],
|
|
|
- ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
),
|
|
|
),
|
|
|
],
|