Quellcode durchsuchen

EventCurrent: styling volgens huisstijl (punten 1 t/m 4)

1. De rood/oranje gradient-kaart is nu een witte kaart: beide gradientkleuren
   op secondaryBackground, rand op alternate (#EEEEEE) 3 px, elevation 0 en de
   schaduwkleur op transparant. De Gradient- en Box-Shadow-toggles zelf reageren
   niet op browser-automation, vandaar deze route -- het resultaat is hetzelfde.
2. EvenementInfo lijnt links uit (crossAxisAlignment + de adres-Row op start)
   in plaats van tegen de rechterrand.
3. "Entree:" van headlineLarge (32 px) naar titleSmall (16 px), en het hele
   Entree-blok is nu verborgen als entreeprijs leeg is -- daarvoor bleef er een
   kale "Entree:" staan zonder waarde.
4. De foto-carousel gebruikt een Responsive Value 0.75/0.75/0.5/0.35 in plaats
   van een hardcoded 0.5, zoals de andere carousels in het project.

Getest met een profile-build op telefoon (411 dp) en tablet (1280 dp): geen
overflow en geen RenderFlex in logcat op beide. dart analyze lib/: 0 errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
bob vor 3 Stunden
Ursprung
Commit
fa50ff551e

+ 4 - 4
ios/Runner.xcodeproj/project.pbxproj

@@ -49,8 +49,8 @@
 		97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
 		97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
 		97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
-		6436409827A31CD800820AF7 /* nl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nl; path = nl.lproj/InfoPlist.strings; sourceTree = "<group>"; };
-		6436409C27A31CDC00820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+		6436409627A31CDA00820AF7 /* nl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nl; path = nl.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+		6436409C27A31CDD00820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
 		97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
 		A9C17DEFA21738E5FBD7F54A /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
 		B8285832C7E7A3262A5A897C /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -317,8 +317,8 @@
 		6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
 			isa = PBXVariantGroup;
 			children = (
-				6436409827A31CD800820AF7 /* nl */,
-				6436409C27A31CDC00820AF7 /* en */,
+				6436409627A31CDA00820AF7 /* nl */,
+				6436409C27A31CDD00820AF7 /* en */,
 			);
 			name = InfoPlist.strings;
 			sourceTree = "<group>";

+ 68 - 67
lib/evenement/evenement_info/evenement_info_widget.dart

@@ -121,11 +121,11 @@ class _EvenementInfoWidgetState extends State<EvenementInfoWidget>
       child: Column(
         mainAxisSize: MainAxisSize.max,
         mainAxisAlignment: MainAxisAlignment.start,
-        crossAxisAlignment: CrossAxisAlignment.end,
+        crossAxisAlignment: CrossAxisAlignment.start,
         children: [
           Row(
             mainAxisSize: MainAxisSize.max,
-            mainAxisAlignment: MainAxisAlignment.end,
+            mainAxisAlignment: MainAxisAlignment.start,
             children: [
               Column(
                 mainAxisSize: MainAxisSize.max,
@@ -178,42 +178,51 @@ class _EvenementInfoWidgetState extends State<EvenementInfoWidget>
               ),
             ],
           ),
-          Row(
-            mainAxisSize: MainAxisSize.min,
-            mainAxisAlignment: MainAxisAlignment.center,
-            children: [
-              Text(
-                FFLocalizations.of(context).getText(
-                  'gpbaiwi9' /* Entree:  */,
-                ),
-                textAlign: TextAlign.center,
-                style: FlutterFlowTheme.of(context).headlineLarge.override(
-                      font: GoogleFonts.roboto(
-                        fontWeight: FlutterFlowTheme.of(context)
-                            .headlineLarge
-                            .fontWeight,
-                        fontStyle: FlutterFlowTheme.of(context)
-                            .headlineLarge
-                            .fontStyle,
-                      ),
-                      letterSpacing: 0.0,
-                      fontWeight:
-                          FlutterFlowTheme.of(context).headlineLarge.fontWeight,
-                      fontStyle:
-                          FlutterFlowTheme.of(context).headlineLarge.fontStyle,
-                    ),
-              ),
-              Column(
-                mainAxisSize: MainAxisSize.min,
-                children: [
-                  if (widget!.entreeprijs != null && widget!.entreeprijs != '')
-                    Text(
-                      valueOrDefault<String>(
-                        widget!.entreeprijs,
-                        'Prijs onbekend',
+          if (widget!.entreeprijs != null && widget!.entreeprijs != '')
+            Row(
+              mainAxisSize: MainAxisSize.min,
+              mainAxisAlignment: MainAxisAlignment.center,
+              children: [
+                Text(
+                  FFLocalizations.of(context).getText(
+                    'gpbaiwi9' /* Entree:  */,
+                  ),
+                  textAlign: TextAlign.center,
+                  style: FlutterFlowTheme.of(context).titleSmall.override(
+                        font: GoogleFonts.roboto(
+                          fontWeight: FlutterFlowTheme.of(context)
+                              .titleSmall
+                              .fontWeight,
+                          fontStyle:
+                              FlutterFlowTheme.of(context).titleSmall.fontStyle,
+                        ),
+                        letterSpacing: 0.0,
+                        fontWeight:
+                            FlutterFlowTheme.of(context).titleSmall.fontWeight,
+                        fontStyle:
+                            FlutterFlowTheme.of(context).titleSmall.fontStyle,
                       ),
-                      style: FlutterFlowTheme.of(context).bodyMedium.override(
-                            font: GoogleFonts.roboto(
+                ),
+                Column(
+                  mainAxisSize: MainAxisSize.min,
+                  children: [
+                    if (widget!.entreeprijs != null &&
+                        widget!.entreeprijs != '')
+                      Text(
+                        valueOrDefault<String>(
+                          widget!.entreeprijs,
+                          'Prijs onbekend',
+                        ),
+                        style: FlutterFlowTheme.of(context).bodyMedium.override(
+                              font: GoogleFonts.roboto(
+                                fontWeight: FlutterFlowTheme.of(context)
+                                    .bodyMedium
+                                    .fontWeight,
+                                fontStyle: FlutterFlowTheme.of(context)
+                                    .bodyMedium
+                                    .fontStyle,
+                              ),
+                              letterSpacing: 0.0,
                               fontWeight: FlutterFlowTheme.of(context)
                                   .bodyMedium
                                   .fontWeight,
@@ -221,24 +230,24 @@ class _EvenementInfoWidgetState extends State<EvenementInfoWidget>
                                   .bodyMedium
                                   .fontStyle,
                             ),
-                            letterSpacing: 0.0,
-                            fontWeight: FlutterFlowTheme.of(context)
-                                .bodyMedium
-                                .fontWeight,
-                            fontStyle: FlutterFlowTheme.of(context)
-                                .bodyMedium
-                                .fontStyle,
-                          ),
-                    ),
-                  if (widget!.entreetoelichting != null &&
-                      widget!.entreetoelichting != '')
-                    Text(
-                      valueOrDefault<String>(
-                        widget!.entreetoelichting,
-                        'Geen toelichting',
                       ),
-                      style: FlutterFlowTheme.of(context).bodyMedium.override(
-                            font: GoogleFonts.roboto(
+                    if (widget!.entreetoelichting != null &&
+                        widget!.entreetoelichting != '')
+                      Text(
+                        valueOrDefault<String>(
+                          widget!.entreetoelichting,
+                          'Geen toelichting',
+                        ),
+                        style: FlutterFlowTheme.of(context).bodyMedium.override(
+                              font: GoogleFonts.roboto(
+                                fontWeight: FlutterFlowTheme.of(context)
+                                    .bodyMedium
+                                    .fontWeight,
+                                fontStyle: FlutterFlowTheme.of(context)
+                                    .bodyMedium
+                                    .fontStyle,
+                              ),
+                              letterSpacing: 0.0,
                               fontWeight: FlutterFlowTheme.of(context)
                                   .bodyMedium
                                   .fontWeight,
@@ -246,19 +255,11 @@ class _EvenementInfoWidgetState extends State<EvenementInfoWidget>
                                   .bodyMedium
                                   .fontStyle,
                             ),
-                            letterSpacing: 0.0,
-                            fontWeight: FlutterFlowTheme.of(context)
-                                .bodyMedium
-                                .fontWeight,
-                            fontStyle: FlutterFlowTheme.of(context)
-                                .bodyMedium
-                                .fontStyle,
-                          ),
-                    ),
-                ],
-              ),
-            ],
-          ),
+                      ),
+                  ],
+                ),
+              ],
+            ),
           if (widget!.website != null && widget!.website != '')
             InkWell(
               splashColor: Colors.transparent,

+ 24 - 5
lib/horecagelegenhedenoverzicht/event_current/event_current_widget.dart

@@ -284,7 +284,20 @@ class _EventCurrentWidgetState extends State<EventCurrentWidget>
                                 CarouselSliderController(),
                             options: CarouselOptions(
                               initialPage: max(0, min(1, fotoos.length - 1)),
-                              viewportFraction: 0.5,
+                              viewportFraction: () {
+                                if (MediaQuery.sizeOf(context).width <
+                                    kBreakpointSmall) {
+                                  return 0.75;
+                                } else if (MediaQuery.sizeOf(context).width <
+                                    kBreakpointMedium) {
+                                  return 0.75;
+                                } else if (MediaQuery.sizeOf(context).width <
+                                    kBreakpointLarge) {
+                                  return 0.5;
+                                } else {
+                                  return 0.35;
+                                }
+                              }(),
                               disableCenter: true,
                               enlargeCenterPage: true,
                               enlargeFactor: 0.25,
@@ -435,13 +448,13 @@ class _EventCurrentWidgetState extends State<EventCurrentWidget>
                       children: [
                         Material(
                           color: Colors.transparent,
-                          elevation: 7.0,
+                          elevation: 0.0,
                           child: Container(
                             decoration: BoxDecoration(
                               boxShadow: [
                                 BoxShadow(
                                   blurRadius: 4.0,
-                                  color: Color(0x33000000),
+                                  color: Colors.transparent,
                                   offset: Offset(
                                     0.0,
                                     2.0,
@@ -449,13 +462,19 @@ class _EventCurrentWidgetState extends State<EventCurrentWidget>
                                 )
                               ],
                               gradient: LinearGradient(
-                                colors: [Color(0xFFE51414), Color(0xFFD28039)],
+                                colors: [
+                                  FlutterFlowTheme.of(context)
+                                      .secondaryBackground,
+                                  FlutterFlowTheme.of(context)
+                                      .secondaryBackground
+                                ],
                                 stops: [0.0, 1.0],
                                 begin: AlignmentDirectional(0.0, -1.0),
                                 end: AlignmentDirectional(0, 1.0),
                               ),
                               border: Border.all(
-                                width: 2.0,
+                                color: FlutterFlowTheme.of(context).alternate,
+                                width: 3.0,
                               ),
                             ),
                             child: Column(

+ 50 - 42
lib/selecteer_plaats/select_state_drop_down_component/select_state_drop_down_component_widget.dart

@@ -346,50 +346,58 @@ class _SelectStateDropDownComponentWidgetState
                   Row(
                     mainAxisSize: MainAxisSize.max,
                     children: [
-                      Text(
-                        FFLocalizations.of(context).getText(
-                          'nosgkxy0' /* Gemeente volgen */,
+                      if (!FFAppState()
+                          .favorieteGemeenteIds
+                          .contains(FFAppState().gemeenteSelectId))
+                        Text(
+                          FFLocalizations.of(context).getText(
+                            'nosgkxy0' /* Gemeente volgen */,
+                          ),
+                          style:
+                              FlutterFlowTheme.of(context).bodyMedium.override(
+                                    font: GoogleFonts.roboto(
+                                      fontWeight: FlutterFlowTheme.of(context)
+                                          .bodyMedium
+                                          .fontWeight,
+                                      fontStyle: FlutterFlowTheme.of(context)
+                                          .bodyMedium
+                                          .fontStyle,
+                                    ),
+                                    letterSpacing: 0.0,
+                                    fontWeight: FlutterFlowTheme.of(context)
+                                        .bodyMedium
+                                        .fontWeight,
+                                    fontStyle: FlutterFlowTheme.of(context)
+                                        .bodyMedium
+                                        .fontStyle,
+                                  ),
                         ),
-                        style: FlutterFlowTheme.of(context).bodyMedium.override(
-                              font: GoogleFonts.roboto(
-                                fontWeight: FlutterFlowTheme.of(context)
-                                    .bodyMedium
-                                    .fontWeight,
-                                fontStyle: FlutterFlowTheme.of(context)
-                                    .bodyMedium
-                                    .fontStyle,
-                              ),
-                              letterSpacing: 0.0,
-                              fontWeight: FlutterFlowTheme.of(context)
-                                  .bodyMedium
-                                  .fontWeight,
-                              fontStyle: FlutterFlowTheme.of(context)
-                                  .bodyMedium
-                                  .fontStyle,
-                            ),
-                      ),
-                      Text(
-                        FFLocalizations.of(context).getText(
-                          'elx7kse2' /* Je volgt deze gemeente */,
+                      if (FFAppState()
+                          .favorieteGemeenteIds
+                          .contains(FFAppState().gemeenteSelectId))
+                        Text(
+                          FFLocalizations.of(context).getText(
+                            'elx7kse2' /* Je volgt deze gemeente */,
+                          ),
+                          style:
+                              FlutterFlowTheme.of(context).bodyMedium.override(
+                                    font: GoogleFonts.roboto(
+                                      fontWeight: FlutterFlowTheme.of(context)
+                                          .bodyMedium
+                                          .fontWeight,
+                                      fontStyle: FlutterFlowTheme.of(context)
+                                          .bodyMedium
+                                          .fontStyle,
+                                    ),
+                                    letterSpacing: 0.0,
+                                    fontWeight: FlutterFlowTheme.of(context)
+                                        .bodyMedium
+                                        .fontWeight,
+                                    fontStyle: FlutterFlowTheme.of(context)
+                                        .bodyMedium
+                                        .fontStyle,
+                                  ),
                         ),
-                        style: FlutterFlowTheme.of(context).bodyMedium.override(
-                              font: GoogleFonts.roboto(
-                                fontWeight: FlutterFlowTheme.of(context)
-                                    .bodyMedium
-                                    .fontWeight,
-                                fontStyle: FlutterFlowTheme.of(context)
-                                    .bodyMedium
-                                    .fontStyle,
-                              ),
-                              letterSpacing: 0.0,
-                              fontWeight: FlutterFlowTheme.of(context)
-                                  .bodyMedium
-                                  .fontWeight,
-                              fontStyle: FlutterFlowTheme.of(context)
-                                  .bodyMedium
-                                  .fontStyle,
-                            ),
-                      ),
                       Builder(
                         builder: (context) {
                           if (FFAppState()