Felvételek képének megjelenítése a Mérés menüpontbam
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
This commit is contained in:
@@ -2,17 +2,19 @@ import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:photo_view/photo_view.dart';
|
||||
import 'package:terepi_seged/pages/measured_data/presentation/controllers/measured_data_controller.dart';
|
||||
import 'package:widget_zoom/widget_zoom.dart';
|
||||
|
||||
import '../../../../models/measured_record.dart';
|
||||
|
||||
class SeismogramViewerDialog extends StatelessWidget {
|
||||
final controller = Get.find<MeasuredDataController>();
|
||||
final String imageUrl;
|
||||
final MeasuredRecord record;
|
||||
final Uint8List image;
|
||||
// final double sourcePoint;
|
||||
SeismogramViewerDialog(
|
||||
{required this.imageUrl, required this.image, super.key});
|
||||
|
||||
const SeismogramViewerDialog({
|
||||
required this.record,
|
||||
required this.image,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -24,43 +26,47 @@ class SeismogramViewerDialog extends StatelessWidget {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
Get.back();
|
||||
},
|
||||
icon: const Icon(Icons.close)),
|
||||
IconButton(onPressed: Get.back, icon: const Icon(Icons.close)),
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
overlayColor:
|
||||
MaterialStateProperty.all(Colors.transparent)),
|
||||
onPressed: () {
|
||||
Get.back();
|
||||
},
|
||||
child: const Text(
|
||||
'Bezár',
|
||||
style: TextStyle(color: Colors.blue, fontSize: 14.0),
|
||||
))
|
||||
style: ButtonStyle(
|
||||
overlayColor:
|
||||
MaterialStateProperty.all(Colors.transparent)),
|
||||
onPressed: Get.back,
|
||||
child: const Text(
|
||||
'Bezár',
|
||||
style: TextStyle(color: Colors.blue, fontSize: 14.0),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 15.0),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15.0),
|
||||
child: Text(
|
||||
'Felvétel megtekintése ()',
|
||||
style: TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold),
|
||||
// Az eredeti verzióban ez a cím mindig üresen jelent meg
|
||||
// ("Felvétel megtekintése ()") — itt tényleges adattal.
|
||||
'Felvétel megtekintése — FFID ${record.ffid ?? "—"}',
|
||||
style:
|
||||
const TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold),
|
||||
),
|
||||
),
|
||||
if (record.geophoneRange != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15.0),
|
||||
child: Text('Geofon-tartomány: ${record.geophoneRange}',
|
||||
style: TextStyle(fontSize: 13, color: Colors.grey.shade600)),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 10.0),
|
||||
child: Center(
|
||||
child: WidgetZoom(
|
||||
zoomWidget: Image(image: MemoryImage(image)),
|
||||
heroAnimationTag: 'tag',
|
||||
heroAnimationTag: 'seismogram_${record.id}',
|
||||
maxScaleFullscreen: 8,
|
||||
maxScaleEmbeddedView: 8,
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user