AYLICRÉA Il tuto
AYLICRÉA

Tuto Site

Pagina

Une page = un canvas. Les views racine (uuid_folder: "") s’y empilent. Le back s’y peint en fill. Host : ShowPageSite(currentPageUUID: page.uuid). Largeur live : forceWidth = pageWidth ?? P.size.pageMainWidth (show_page.dart).

Champs fromJson

CléTypeRôle
uuidstring v7ViewContent.uuid_page et BackContent.uuid_page
enable0|11
typestringtop bottom top_ini… chrome header/footer. Vide = page normale
widthdoublecanvas. Pas un ViewDataSize. Le site public ignore souvent au profit de P.size.pageMainWidth
heightdouble0 = auto mesuré
backgroundstringuuid BackContent (optionnel : le back est aussi trouvé par uuid_page)
nameTextLocalenom interne
link uuid_linkstringsélecteur shop si page liée

Ce que la page n’est pas

  • Elle n’a pas de children JSON.
  • Elle n’a pas de pad/pos.
  • width/height page ≠ width/height view.

Les views racine reçoivent maxWidth = forceWidth. Un view width 100% = 100 % de cette toile.

{
  "id": 0,
  "odr": 1,
  "uuid": "0197836f-07f5-70a6-bc61-e0377b5cd0d9",
  "origin": "",
  "link": "",
  "uuid_link": "",
  "uuid_folder": "",
  "gen": 0,
  "folder": 0,
  "type": "",
  "enable": 1,
  "ref": "",
  "name": { "fr": "home", "en": "home", "nl": "", "es": "", "it": "", "pt": "", "de": "" },
  "width": 0,
  "height": 0,
  "background": "0197836f-2810-7b7a-9a7d-0d3d98e4362b",
  "image": {}
}
Piège. width: 0 / height: 0 sur la page = laisser le runtime (P.size.pageMainWidth, hauteur mesurée). Ne pas confondre avec view height.l.i = 0 (hug enfants).