Stand 2024-12-09 - 2
This commit is contained in:
parent
f4025af50b
commit
6e727815c3
5 changed files with 23 additions and 15 deletions
|
@ -14,7 +14,7 @@ class CancelButton extends StatelessWidget {
|
|||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
title: context.translate('pages.general.buttons.cancel'),
|
||||
title: context.translate('page.general.buttons.cancel'),
|
||||
backgroundColor: theme.currentColorScheme.tertiary,
|
||||
foregroundColor: theme.currentColorScheme.error,
|
||||
borderColor: theme.currentColorScheme.error,
|
||||
|
|
|
@ -14,7 +14,7 @@ class DeleteButton extends StatelessWidget {
|
|||
final AmbitoTheme theme = getTheme(context);
|
||||
return WidgetOutlineButton(
|
||||
onPressed: onPressed,
|
||||
title: context.translate('pages.general.buttons.delete'),
|
||||
title: context.translate('page.general.buttons.delete'),
|
||||
backgroundColor: theme.currentColorScheme.error,
|
||||
foregroundColor: theme.currentColorScheme.onError,
|
||||
borderColor: theme.currentColorScheme.error,
|
||||
|
|
|
@ -14,7 +14,7 @@ class SaveButton extends StatelessWidget {
|
|||
final AmbitoTheme theme = getTheme(context);
|
||||
return WidgetOutlineButton(
|
||||
onPressed: onPressed,
|
||||
title: context.translate('pages.general.buttons.save'),
|
||||
title: context.translate('page.general.buttons.save'),
|
||||
backgroundColor: theme.currentColorScheme.secondary,
|
||||
foregroundColor: theme.currentColorScheme.onPrimary,
|
||||
borderColor: theme.currentColorScheme.secondary,
|
||||
|
|
|
@ -57,7 +57,7 @@ class EditAreaDialog extends StatelessWidget {
|
|||
theme.verticalSpacer,
|
||||
const TextHeadline(
|
||||
text:
|
||||
'pages.dashboard.business.area.title_edit_area'),
|
||||
'page.dashboard.business.area.title_edit_area'),
|
||||
theme.verticalSpacer,
|
||||
SaveButtonsGroup(onPressed: () {
|
||||
Area area = isar.areas.get(id)!;
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
import 'dart:async';
|
||||
import 'dart:collection';
|
||||
import 'dart:io';
|
||||
import 'dart:math' as Math;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||
|
@ -17,6 +20,9 @@ class MapWidgetState extends State<MapWidget> {
|
|||
final Completer<GoogleMapController> _controller =
|
||||
Completer<GoogleMapController>();
|
||||
|
||||
final con = GoogleMap
|
||||
|
||||
|
||||
static CameraPosition _initialPos = const CameraPosition(
|
||||
target: LatLng(0, 0),
|
||||
zoom: 14.4746,
|
||||
|
@ -39,18 +45,20 @@ class MapWidgetState extends State<MapWidget> {
|
|||
borderRadius: BorderRadius.circular(10.0),
|
||||
child: SizedBox(
|
||||
width: double.infinity,
|
||||
height: 525,
|
||||
child: GoogleMap(
|
||||
mapToolbarEnabled: true,
|
||||
mapType: MapType.hybrid,
|
||||
markers: widget.markers ?? {},
|
||||
polygons: widget.polygons ?? {},
|
||||
initialCameraPosition: _initialPos,
|
||||
onMapCreated: (GoogleMapController controller) {
|
||||
_controller.complete(controller);
|
||||
},
|
||||
height: 550,
|
||||
child: GoogleMap(
|
||||
mapToolbarEnabled: true,
|
||||
mapType: MapType.hybrid,
|
||||
markers: widget.markers ?? {},
|
||||
polygons: widget.polygons ?? {},
|
||||
initialCameraPosition: _initialPos,
|
||||
onMapCreated: (GoogleMapController controller) {
|
||||
_controller.complete(controller);
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue