diff --git a/lib/viewCam/view_cams.dart b/lib/viewCam/view_cams.dart index 9edf8c0..d9dd25f 100644 --- a/lib/viewCam/view_cams.dart +++ b/lib/viewCam/view_cams.dart @@ -1,6 +1,8 @@ import 'package:fforte/addCam/add_cam_main.dart'; import 'package:fforte/other/db_helper.dart'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_slidable/flutter_slidable.dart'; // * Site that shows all entries in the databases @@ -124,7 +126,8 @@ class _ViewCamsState extends State { } else if (snapshot.hasError) { return Text('Error: ${snapshot.error}'); } else { - List> placeList = List.of(snapshot.data!); + List> placeList = + List.of(snapshot.data!); return Scaffold( floatingActionButton: FloatingActionButton( child: const Icon(Icons.delete), @@ -134,20 +137,30 @@ class _ViewCamsState extends State { ), body: Column( children: [ - const SizedBox( - height: 10, - ), + const SizedBox(height: 10,), Row( - mainAxisAlignment: MainAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - Expanded( - flex: 2, - child: Text( - AppLocalizations.of(context)!.placedata)), - Expanded( - flex: 2, - child: - Text(AppLocalizations.of(context)!.sent)), + Row( + children: [ + const SizedBox(width: 10,), + Text( + style: const TextStyle( + decoration: TextDecoration.underline + ), + AppLocalizations.of(context)!.placedata), + ], + ), + Row( + children: [ + Text( + style: const TextStyle( + decoration: TextDecoration.underline + ), + AppLocalizations.of(context)!.sent), + const SizedBox(width: 10,), + ], + ), ], ), const SizedBox( @@ -157,19 +170,22 @@ class _ViewCamsState extends State { child: ListView.builder( itemCount: placeList.length, itemBuilder: (context, index) { - Map place = snapshot.data![index]; + Map place = + snapshot.data![index]; return Slidable( startActionPane: ActionPane( motion: const ScrollMotion(), children: [ SlidableAction( onPressed: (context) { - delSinglePlace(place['ID'.toString()]); + delSinglePlace( + place['ID'.toString()]); }, backgroundColor: Colors.red, foregroundColor: Colors.white, icon: Icons.delete, - label: AppLocalizations.of(context)!.justdelete, + label: AppLocalizations.of(context)! + .justdelete, ) ]), child: ListTile( diff --git a/time.txt b/time.txt index 06da07c..209eb5b 100644 --- a/time.txt +++ b/time.txt @@ -47,6 +47,7 @@ 23 mär 2h 15 min 24 mär 1h 26 mär 45 min -20 mär 1h 30 min -24 mär 5h -30 mär 4h 15 min +20 apr 1h 30 min +24 apr 5h +30 apr 4h 15 min +1 mai 4h