This commit is contained in:
Thomas Fransolet 2025-07-02 13:11:16 +02:00
parent b20a112eb2
commit 5e5d92a510
3 changed files with 9 additions and 7 deletions

View File

@ -182,7 +182,7 @@ class _MapBoxViewState extends State<MapBoxView> {
}, },
onTapListener: (listener) { onTapListener: (listener) {
// close on tap // close on tap
mapContext.setSelectedPoint(null); //mapContext.setSelectedPoint(null);
mapContext.setSelectedPointForNavigate(null); mapContext.setSelectedPointForNavigate(null);
}, },
cameraOptions: mapBox.CameraOptions( cameraOptions: mapBox.CameraOptions(

View File

@ -48,8 +48,8 @@ class _SliderPage extends State<SliderPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size; Size size = MediaQuery.of(context).size;
final appContext = Provider.of<AppContext>(context); final appContext = Provider.of<AppContext>(context);
VisitAppContext visitAppContex = appContext.getContext() as VisitAppContext; VisitAppContext visitAppContext = appContext.getContext() as VisitAppContext;
Color? primaryColor = visitAppContex.configuration!.primaryColor != null ? Color(int.parse(visitAppContex.configuration!.primaryColor!.split('(0x')[1].split(')')[0], radix: 16)) : null; Color? primaryColor = visitAppContext.configuration!.primaryColor != null ? Color(int.parse(visitAppContext.configuration!.primaryColor!.split('(0x')[1].split(')')[0], radix: 16)) : null;
configurationDTO = appContext.getContext().configuration; configurationDTO = appContext.getContext().configuration;
@ -83,7 +83,7 @@ class _SliderPage extends State<SliderPage> {
decoration: BoxDecoration( decoration: BoxDecoration(
color: kBackgroundGrey, color: kBackgroundGrey,
//color: configurationDTO.imageId == null ? configurationDTO.secondaryColor != null ? new Color(int.parse(configurationDTO.secondaryColor!.split('(0x')[1].split(')')[0], radix: 16)): kBackgroundGrey : null, //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), //border: Border.all(width: 0.3, color: kSecondGrey),
), ),
child: Column( child: Column(
@ -142,7 +142,7 @@ class _SliderPage extends State<SliderPage> {
decoration: BoxDecoration( decoration: BoxDecoration(
color: kBackgroundLight,// kBackgroundLight, color: kBackgroundLight,// kBackgroundLight,
shape: BoxShape.rectangle, shape: BoxShape.rectangle,
borderRadius: BorderRadius.circular(visitAppContex.configuration!.roundedValue?.toDouble() ?? 10.0), borderRadius: BorderRadius.circular(visitAppContext.configuration!.roundedValue?.toDouble() ?? 10.0),
boxShadow: const [ boxShadow: const [
BoxShadow( BoxShadow(
color: kBackgroundSecondGrey, color: kBackgroundSecondGrey,

View File

@ -51,6 +51,8 @@ class _BodyState extends State<Body> {
VisitAppContext visitAppContext = appContext.getContext(); VisitAppContext visitAppContext = appContext.getContext();
Size size = MediaQuery.of(context).size; 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( return SafeArea(
bottom: false, bottom: false,
top: false, top: false,
@ -122,8 +124,8 @@ class _BodyState extends State<Body> {
//}); //});
}, },
child: Container( child: Container(
decoration: const BoxDecoration( decoration: BoxDecoration(
color: kMainColor, color: primaryColor,
shape: BoxShape.circle, shape: BoxShape.circle,
), ),
child: const Icon(Icons.arrow_back, size: 23, color: Colors.white) child: const Icon(Icons.arrow_back, size: 23, color: Colors.white)