Browse Source

Fix overflow bug in Event->Horeca card (plaats/adres/telefoon)

Wrap the plaats, adres and telefoon Text widgets in Flexible in
evenement_horecagelegenheid_widget.dart, same RenderFlex overflow
pattern already fixed in the slider and table cards.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
bob 1 tháng trước cách đây
mục cha
commit
b807b57fd8

+ 70 - 58
lib/evenement/evenement_horecagelegenheid/evenement_horecagelegenheid_widget.dart

@@ -477,17 +477,29 @@ class _EvenementHorecagelegenheidWidgetState
                                       FlutterFlowTheme.of(context).primaryText,
                                   size: 24.0,
                                 ),
-                                Text(
-                                  valueOrDefault<String>(
-                                    EstablishmentInfoCall.establishmentPlaats(
-                                      columnEstablishmentInfoResponse.jsonBody,
+                                Flexible(
+                                  child: Text(
+                                    valueOrDefault<String>(
+                                      EstablishmentInfoCall.establishmentPlaats(
+                                        columnEstablishmentInfoResponse
+                                            .jsonBody,
+                                      ),
+                                      'Plaats',
                                     ),
-                                    'Plaats',
-                                  ),
-                                  style: FlutterFlowTheme.of(context)
-                                      .bodyMedium
-                                      .override(
-                                        font: GoogleFonts.inter(
+                                    style: FlutterFlowTheme.of(context)
+                                        .bodyMedium
+                                        .override(
+                                          font: GoogleFonts.inter(
+                                            fontWeight:
+                                                FlutterFlowTheme.of(context)
+                                                    .bodyMedium
+                                                    .fontWeight,
+                                            fontStyle:
+                                                FlutterFlowTheme.of(context)
+                                                    .bodyMedium
+                                                    .fontStyle,
+                                          ),
+                                          letterSpacing: 0.0,
                                           fontWeight:
                                               FlutterFlowTheme.of(context)
                                                   .bodyMedium
@@ -497,26 +509,31 @@ class _EvenementHorecagelegenheidWidgetState
                                                   .bodyMedium
                                                   .fontStyle,
                                         ),
-                                        letterSpacing: 0.0,
-                                        fontWeight: FlutterFlowTheme.of(context)
-                                            .bodyMedium
-                                            .fontWeight,
-                                        fontStyle: FlutterFlowTheme.of(context)
-                                            .bodyMedium
-                                            .fontStyle,
-                                      ),
+                                  ),
                                 ),
-                                Text(
-                                  valueOrDefault<String>(
-                                    EstablishmentInfoCall.establishmentAdres(
-                                      columnEstablishmentInfoResponse.jsonBody,
+                                Flexible(
+                                  child: Text(
+                                    valueOrDefault<String>(
+                                      EstablishmentInfoCall.establishmentAdres(
+                                        columnEstablishmentInfoResponse
+                                            .jsonBody,
+                                      ),
+                                      'Adres',
                                     ),
-                                    'Adres',
-                                  ),
-                                  style: FlutterFlowTheme.of(context)
-                                      .bodyMedium
-                                      .override(
-                                        font: GoogleFonts.inter(
+                                    style: FlutterFlowTheme.of(context)
+                                        .bodyMedium
+                                        .override(
+                                          font: GoogleFonts.inter(
+                                            fontWeight:
+                                                FlutterFlowTheme.of(context)
+                                                    .bodyMedium
+                                                    .fontWeight,
+                                            fontStyle:
+                                                FlutterFlowTheme.of(context)
+                                                    .bodyMedium
+                                                    .fontStyle,
+                                          ),
+                                          letterSpacing: 0.0,
                                           fontWeight:
                                               FlutterFlowTheme.of(context)
                                                   .bodyMedium
@@ -526,14 +543,7 @@ class _EvenementHorecagelegenheidWidgetState
                                                   .bodyMedium
                                                   .fontStyle,
                                         ),
-                                        letterSpacing: 0.0,
-                                        fontWeight: FlutterFlowTheme.of(context)
-                                            .bodyMedium
-                                            .fontWeight,
-                                        fontStyle: FlutterFlowTheme.of(context)
-                                            .bodyMedium
-                                            .fontStyle,
-                                      ),
+                                  ),
                                 ),
                               ],
                             ),
@@ -564,19 +574,30 @@ class _EvenementHorecagelegenheidWidgetState
                                           'Telefoon',
                                         ) !=
                                         '')
-                                  Text(
-                                    valueOrDefault<String>(
-                                      EstablishmentInfoCall
-                                          .establishmentTelefoonnummer(
-                                        columnEstablishmentInfoResponse
-                                            .jsonBody,
+                                  Flexible(
+                                    child: Text(
+                                      valueOrDefault<String>(
+                                        EstablishmentInfoCall
+                                            .establishmentTelefoonnummer(
+                                          columnEstablishmentInfoResponse
+                                              .jsonBody,
+                                        ),
+                                        'Telefoon',
                                       ),
-                                      'Telefoon',
-                                    ),
-                                    style: FlutterFlowTheme.of(context)
-                                        .bodyMedium
-                                        .override(
-                                          font: GoogleFonts.inter(
+                                      style: FlutterFlowTheme.of(context)
+                                          .bodyMedium
+                                          .override(
+                                            font: GoogleFonts.inter(
+                                              fontWeight:
+                                                  FlutterFlowTheme.of(context)
+                                                      .bodyMedium
+                                                      .fontWeight,
+                                              fontStyle:
+                                                  FlutterFlowTheme.of(context)
+                                                      .bodyMedium
+                                                      .fontStyle,
+                                            ),
+                                            letterSpacing: 0.0,
                                             fontWeight:
                                                 FlutterFlowTheme.of(context)
                                                     .bodyMedium
@@ -586,16 +607,7 @@ class _EvenementHorecagelegenheidWidgetState
                                                     .bodyMedium
                                                     .fontStyle,
                                           ),
-                                          letterSpacing: 0.0,
-                                          fontWeight:
-                                              FlutterFlowTheme.of(context)
-                                                  .bodyMedium
-                                                  .fontWeight,
-                                          fontStyle:
-                                              FlutterFlowTheme.of(context)
-                                                  .bodyMedium
-                                                  .fontStyle,
-                                        ),
+                                    ),
                                   ),
                               ],
                             ),