From 5e5d92a510a71dbe6a271729f69ccead91e243d6 Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Wed, 2 Jul 2025 13:11:16 +0200 Subject: [PATCH] misc --- lib/Screens/Sections/Map/map_box_view.dart | 2 +- lib/Screens/Sections/Slider/slider_page.dart | 8 ++++---- lib/Screens/Visit/components/body.dart | 6 ++++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/Screens/Sections/Map/map_box_view.dart b/lib/Screens/Sections/Map/map_box_view.dart index 3d191a7..49bd513 100644 --- a/lib/Screens/Sections/Map/map_box_view.dart +++ b/lib/Screens/Sections/Map/map_box_view.dart @@ -182,7 +182,7 @@ class _MapBoxViewState extends State { }, onTapListener: (listener) { // close on tap - mapContext.setSelectedPoint(null); + //mapContext.setSelectedPoint(null); mapContext.setSelectedPointForNavigate(null); }, cameraOptions: mapBox.CameraOptions( diff --git a/lib/Screens/Sections/Slider/slider_page.dart b/lib/Screens/Sections/Slider/slider_page.dart index b9cd260..df250e5 100644 --- a/lib/Screens/Sections/Slider/slider_page.dart +++ b/lib/Screens/Sections/Slider/slider_page.dart @@ -48,8 +48,8 @@ class _SliderPage extends State { Widget build(BuildContext context) { Size size = MediaQuery.of(context).size; final appContext = Provider.of(context); - VisitAppContext visitAppContex = appContext.getContext() as VisitAppContext; - Color? primaryColor = visitAppContex.configuration!.primaryColor != null ? Color(int.parse(visitAppContex.configuration!.primaryColor!.split('(0x')[1].split(')')[0], radix: 16)) : null; + VisitAppContext visitAppContext = appContext.getContext() as VisitAppContext; + Color? primaryColor = visitAppContext.configuration!.primaryColor != null ? Color(int.parse(visitAppContext.configuration!.primaryColor!.split('(0x')[1].split(')')[0], radix: 16)) : null; configurationDTO = appContext.getContext().configuration; @@ -83,7 +83,7 @@ class _SliderPage extends State { decoration: BoxDecoration( color: kBackgroundGrey, //color: configurationDTO.imageId == null ? configurationDTO.secondaryColor != null ? new Color(int.parse(configurationDTO.secondaryColor!.split('(0x')[1].split(')')[0], radix: 16)): kBackgroundGrey : null, - borderRadius: BorderRadius.circular(visitAppContex.configuration!.roundedValue?.toDouble() ?? 10.0), + borderRadius: BorderRadius.circular(visitAppContext.configuration!.roundedValue?.toDouble() ?? 10.0), //border: Border.all(width: 0.3, color: kSecondGrey), ), child: Column( @@ -142,7 +142,7 @@ class _SliderPage extends State { decoration: BoxDecoration( color: kBackgroundLight,// kBackgroundLight, shape: BoxShape.rectangle, - borderRadius: BorderRadius.circular(visitAppContex.configuration!.roundedValue?.toDouble() ?? 10.0), + borderRadius: BorderRadius.circular(visitAppContext.configuration!.roundedValue?.toDouble() ?? 10.0), boxShadow: const [ BoxShadow( color: kBackgroundSecondGrey, diff --git a/lib/Screens/Visit/components/body.dart b/lib/Screens/Visit/components/body.dart index bae26e9..d499c21 100644 --- a/lib/Screens/Visit/components/body.dart +++ b/lib/Screens/Visit/components/body.dart @@ -51,6 +51,8 @@ class _BodyState extends State { VisitAppContext visitAppContext = appContext.getContext(); Size size = MediaQuery.of(context).size; + Color? primaryColor = widget.configuration.primaryColor != null ? Color(int.parse(widget.configuration.primaryColor!.split('(0x')[1].split(')')[0], radix: 16)) : null; + return SafeArea( bottom: false, top: false, @@ -122,8 +124,8 @@ class _BodyState extends State { //}); }, child: Container( - decoration: const BoxDecoration( - color: kMainColor, + decoration: BoxDecoration( + color: primaryColor, shape: BoxShape.circle, ), child: const Icon(Icons.arrow_back, size: 23, color: Colors.white)