Outils pour utilisateurs

Outils du site


informatique:flutter:debug

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:flutter:debug [09/07/2025 14:05] cyrilleinformatique:flutter:debug [09/07/2025 18:28] (Version actuelle) cyrille
Ligne 1: Ligne 1:
 ====== Flutter / debug ====== ====== Flutter / debug ======
 +
 +  * Dart & Flutter support for Visual Studio Code [[https://dartcode.org/docs/debugging-commands/|Debugging Commands]]
 +
 +===== Attraper un maximum d'erreurs =====
 +
 +{{ :informatique:flutter:debug_catch_max_errors.png?nolink&400 |}}
  
 ===== Le rendu plante sans rien dans la debug console ===== ===== Le rendu plante sans rien dans la debug console =====
Ligne 9: Ligne 15:
 {{:informatique:flutter:debug_rendering_02.png?nolink&400|}} {{:informatique:flutter:debug_rendering_02.png?nolink&400|}}
 {{:informatique:flutter:debug_rendering_03.png?nolink&400|}} {{:informatique:flutter:debug_rendering_03.png?nolink&400|}}
 +
 +Par exemple un ''ListView'' dans un ''Column'' génère l'erreur, avec souvent une explication.
 +
 +<code>
 +════════ Exception caught by rendering library ═════════════════════════════════
 +The following assertion was thrown during performResize():
 +Vertical viewport was given unbounded height.
 +Viewports expand in the scrolling direction to fill their container. In this case, a vertical viewport was given an unlimited amount of vertical space in which to expand. This situation typically happens when a scrollable widget is nested inside another scrollable widget.
 +If this widget is always nested in a scrollable widget there is no need to use a viewport because there will always be enough vertical space for the children. In this case, consider using a Column or Wrap instead. Otherwise, consider using a CustomScrollView to concatenate arbitrary slivers into a single scrollable.
 +
 +The relevant error-causing widget was:
 +    ListView ListView:file:///home/.../CroustiWiki.flutter/lib/widgets/duks_list.dart:53:27
 +
 +...
 +
 +════════ Exception caught by rendering library ═════════════════════════════════
 +RenderBox was not laid out: RenderViewport#6f0f6 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
 +'package:flutter/src/rendering/box.dart':
 +Failed assertion: line 2251 pos 12: 'hasSize'
 +The relevant error-causing widget was:
 +    ListView ListView:file:///home/.../CroustiWiki.flutter/lib/widgets/duks_list.dart:53:27
 +════════════════════════════════════════════════════════════════════════════════
 +</code>
  
informatique/flutter/debug.1752062739.txt.gz · Dernière modification : de cyrille

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki