|
|
|
|
@ -71,12 +71,6 @@ class _MapTrackingPageState extends State<MapTrackingPage> {
|
|
|
|
|
|
|
|
|
|
static const LatLng _fallbackCenter = LatLng(24.81200245073082, 46.624273601310186);
|
|
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
// Workflow switch:
|
|
|
|
|
// true -> NEW: paginated/searchable/multi-select draggable bottom sheet
|
|
|
|
|
// (see asset_tracking_draggable_sheet.dart)
|
|
|
|
|
// false -> EXISTING: "Assets found on this floor" UpwardExpansionTile + dropdown
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
static const bool showAsDraggableSheet = false;
|
|
|
|
|
|
|
|
|
|
/// NEW WORKFLOW: current query for the draggable sheet (null until "View" is pressed).
|
|
|
|
|
@ -295,8 +289,8 @@ class _MapTrackingPageState extends State<MapTrackingPage> {
|
|
|
|
|
return Polygon<Object>(
|
|
|
|
|
points: base.points,
|
|
|
|
|
holePointsList: base.holePointsList,
|
|
|
|
|
color: isSelected ? AppColor.red30.withOpacity(0.35) : base.color,
|
|
|
|
|
borderColor: isSelected ? AppColor.red30 : base.borderColor,
|
|
|
|
|
color: isSelected ? AppColor.primary10.withOpacity(0.35) : base.color,
|
|
|
|
|
borderColor: isSelected ? AppColor.primary10 : base.borderColor,
|
|
|
|
|
borderStrokeWidth: base.borderStrokeWidth,
|
|
|
|
|
// Count is shown as a circular badge marker (see _buildZoneBadgeMarkers).
|
|
|
|
|
hitValue: zone,
|
|
|
|
|
@ -410,6 +404,7 @@ class _MapTrackingPageState extends State<MapTrackingPage> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void _showZoneDetails(GeoZone zone) {
|
|
|
|
|
if (zone.assets.isEmpty) return;
|
|
|
|
|
showModalBottomSheet(
|
|
|
|
|
context: context,
|
|
|
|
|
isScrollControlled: true,
|
|
|
|
|
@ -558,8 +553,8 @@ class _MapTrackingPageState extends State<MapTrackingPage> {
|
|
|
|
|
labelStyle: AppTextStyles.bodyText2.copyWith(color: AppColor.textColor(context)),
|
|
|
|
|
labelPlacementCalculator: const PolygonLabelPlacementCalculator.simpleCentroid(),
|
|
|
|
|
points: list,
|
|
|
|
|
color: AppColor.red30.withOpacity(0.3),
|
|
|
|
|
borderColor: AppColor.red30,
|
|
|
|
|
color: AppColor.primary10.withOpacity(0.3),
|
|
|
|
|
borderColor: AppColor.primary10,
|
|
|
|
|
borderStrokeWidth: 2.0,
|
|
|
|
|
hitValue: zone,
|
|
|
|
|
);
|
|
|
|
|
@ -833,7 +828,7 @@ class _ZoneCountBadge extends StatelessWidget {
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
|
color: AppColor.red30,
|
|
|
|
|
color: AppColor.primary10,
|
|
|
|
|
border: Border.all(color: Colors.white, width: 1),
|
|
|
|
|
boxShadow: [BoxShadow(color: Colors.black.withOpacity(0.25), blurRadius: 4, offset: const Offset(0, 2))],
|
|
|
|
|
),
|
|
|
|
|
|