tabbing on finished entrie in view cams now leads to add cam window with normal save options

This commit is contained in:
nico
2024-05-01 00:08:10 +02:00
parent 647532107b
commit e8304bffc2
6 changed files with 75 additions and 48 deletions

View File

@@ -2,7 +2,6 @@ import 'package:fforte/addCam/add_cam_main.dart';
import 'package:fforte/other/db_helper.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_popup_card/flutter_popup_card.dart';
// * Site that shows all entries in the databases
class ViewCams extends StatefulWidget {
@@ -160,7 +159,18 @@ class _ViewCamsState extends State<ViewCams> {
onChanged: null,
),
onTap: () async {
showPopupCard(
Navigator.push(
context,
MaterialPageRoute(builder: (context) =>
AddCamMain(
isFinished: true,
existingData: place,
)
)
);
/* showPopupCard(
context: context,
builder: (context) {
return PopupCard(
@@ -257,7 +267,7 @@ class _ViewCamsState extends State<ViewCams> {
),
),
);
});
}); */
},
);
},
@@ -299,7 +309,8 @@ class _ViewCamsState extends State<ViewCams> {
builder: (context) =>
AddCamMain(
isTemplate: true,
templateData: templates,
isFinished: false,
existingData: templates,
)));
},
title: Text('Place ${index + 1}'),