mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-08-05 04:36:41 +00:00
added empty logbook state
This commit is contained in:
parent
84c8973690
commit
416c3b7d9c
6 changed files with 22 additions and 5 deletions
|
@ -174,5 +174,6 @@
|
|||
"notSet": "Nicht gesetzt",
|
||||
"location": "Standort",
|
||||
"noMapsAppFound": "Keine Kartenanwendung gefunden.",
|
||||
"logbook": "Fototagebuch"
|
||||
"logbook": "Fototagebuch",
|
||||
"noPhotos": "Keine Fotos"
|
||||
}
|
|
@ -174,5 +174,6 @@
|
|||
"notSet": "Not set",
|
||||
"location": "Location",
|
||||
"noMapsAppFound": "No maps application found.",
|
||||
"logbook": "Logbook"
|
||||
"logbook": "Logbook",
|
||||
"noPhotos": "No photos"
|
||||
}
|
|
@ -165,5 +165,6 @@
|
|||
"notSet": "Non défini",
|
||||
"location": "Emplacement",
|
||||
"noMapsAppFound": "Aucune application de cartes trouvée.",
|
||||
"logbook": "Carnet photo"
|
||||
"logbook": "Carnet photo",
|
||||
"noPhotos": "Aucune photo"
|
||||
}
|
|
@ -164,5 +164,6 @@
|
|||
"notSet": "Не задано",
|
||||
"location": "Местоположение",
|
||||
"noMapsAppFound": "Приложение карт не найдено.",
|
||||
"logbook": "Фотожурнал"
|
||||
"logbook": "Фотожурнал",
|
||||
"noPhotos": "Нет фотографий"
|
||||
}
|
|
@ -162,5 +162,6 @@
|
|||
"notSet": "未设置",
|
||||
"location": "位置",
|
||||
"noMapsAppFound": "未找到地图应用程序。",
|
||||
"logbook": "拍照日志"
|
||||
"logbook": "拍照日志",
|
||||
"noPhotos": "没有照片"
|
||||
}
|
|
@ -6,6 +6,7 @@ import 'package:lightmeter/providers/logbook_photos_provider.dart';
|
|||
import 'package:lightmeter/res/dimens.dart';
|
||||
import 'package:lightmeter/screens/logbook/components/grid_tile/widget_grid_tile_logbook_photo.dart';
|
||||
import 'package:lightmeter/screens/shared/sliver_screen/screen_sliver.dart';
|
||||
import 'package:lightmeter/screens/shared/icon_placeholder/widget_icon_placeholder.dart';
|
||||
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
||||
|
||||
class LogbookScreen extends StatefulWidget {
|
||||
|
@ -53,6 +54,17 @@ class _PicturesGridBuilder extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (values.isEmpty) {
|
||||
return SliverFillRemaining(
|
||||
hasScrollBody: false,
|
||||
child: Center(
|
||||
child: IconPlaceholder(
|
||||
icon: Icons.photo_outlined,
|
||||
text: S.of(context).noPhotos,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
return SliverPadding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: Dimens.paddingM),
|
||||
sliver: SliverGrid(
|
||||
|
|
Loading…
Reference in a new issue