Stand 2024-12-09 - 2

This commit is contained in:
Jens Reinemuth 2024-12-09 12:17:12 +01:00
parent f4025af50b
commit 6e727815c3
5 changed files with 23 additions and 15 deletions

View file

@ -14,7 +14,7 @@ class CancelButton extends StatelessWidget {
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
title: context.translate('pages.general.buttons.cancel'), title: context.translate('page.general.buttons.cancel'),
backgroundColor: theme.currentColorScheme.tertiary, backgroundColor: theme.currentColorScheme.tertiary,
foregroundColor: theme.currentColorScheme.error, foregroundColor: theme.currentColorScheme.error,
borderColor: theme.currentColorScheme.error, borderColor: theme.currentColorScheme.error,

View file

@ -14,7 +14,7 @@ class DeleteButton extends StatelessWidget {
final AmbitoTheme theme = getTheme(context); final AmbitoTheme theme = getTheme(context);
return WidgetOutlineButton( return WidgetOutlineButton(
onPressed: onPressed, onPressed: onPressed,
title: context.translate('pages.general.buttons.delete'), title: context.translate('page.general.buttons.delete'),
backgroundColor: theme.currentColorScheme.error, backgroundColor: theme.currentColorScheme.error,
foregroundColor: theme.currentColorScheme.onError, foregroundColor: theme.currentColorScheme.onError,
borderColor: theme.currentColorScheme.error, borderColor: theme.currentColorScheme.error,

View file

@ -14,7 +14,7 @@ class SaveButton extends StatelessWidget {
final AmbitoTheme theme = getTheme(context); final AmbitoTheme theme = getTheme(context);
return WidgetOutlineButton( return WidgetOutlineButton(
onPressed: onPressed, onPressed: onPressed,
title: context.translate('pages.general.buttons.save'), title: context.translate('page.general.buttons.save'),
backgroundColor: theme.currentColorScheme.secondary, backgroundColor: theme.currentColorScheme.secondary,
foregroundColor: theme.currentColorScheme.onPrimary, foregroundColor: theme.currentColorScheme.onPrimary,
borderColor: theme.currentColorScheme.secondary, borderColor: theme.currentColorScheme.secondary,

View file

@ -57,7 +57,7 @@ class EditAreaDialog extends StatelessWidget {
theme.verticalSpacer, theme.verticalSpacer,
const TextHeadline( const TextHeadline(
text: text:
'pages.dashboard.business.area.title_edit_area'), 'page.dashboard.business.area.title_edit_area'),
theme.verticalSpacer, theme.verticalSpacer,
SaveButtonsGroup(onPressed: () { SaveButtonsGroup(onPressed: () {
Area area = isar.areas.get(id)!; Area area = isar.areas.get(id)!;

View file

@ -1,4 +1,7 @@
import 'dart:async'; import 'dart:async';
import 'dart:collection';
import 'dart:io';
import 'dart:math' as Math;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart';
@ -17,6 +20,9 @@ class MapWidgetState extends State<MapWidget> {
final Completer<GoogleMapController> _controller = final Completer<GoogleMapController> _controller =
Completer<GoogleMapController>(); Completer<GoogleMapController>();
final con = GoogleMap
static CameraPosition _initialPos = const CameraPosition( static CameraPosition _initialPos = const CameraPosition(
target: LatLng(0, 0), target: LatLng(0, 0),
zoom: 14.4746, zoom: 14.4746,
@ -39,7 +45,7 @@ class MapWidgetState extends State<MapWidget> {
borderRadius: BorderRadius.circular(10.0), borderRadius: BorderRadius.circular(10.0),
child: SizedBox( child: SizedBox(
width: double.infinity, width: double.infinity,
height: 525, height: 550,
child: GoogleMap( child: GoogleMap(
mapToolbarEnabled: true, mapToolbarEnabled: true,
mapType: MapType.hybrid, mapType: MapType.hybrid,
@ -53,4 +59,6 @@ class MapWidgetState extends State<MapWidget> {
), ),
); );
} }
} }