- Framework: Flutter web - Pages: Login, inscription, dashboards - Services: API client, authentification, gestion d'état - Intégration avec backend NestJS - Dockerfile pour déploiement web
32 lines
908 B
Dart
32 lines
908 B
Dart
import 'package:flutter/material.dart';
|
||
import 'package:p_tits_pas/widgets/dashbord_parent/ChildrenSidebarwidget.dart';
|
||
import 'package:p_tits_pas/widgets/dashbord_parent/children_sidebar.dart';
|
||
import 'package:p_tits_pas/widgets/dashbord_parent/wid_mainContentArea.dart';
|
||
import 'package:p_tits_pas/widgets/messaging_sidebar.dart';
|
||
|
||
Widget Dashbord_body() {
|
||
return Row(
|
||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||
children: [
|
||
// 1️⃣ Colonne de gauche : enfants
|
||
SizedBox(
|
||
width: 250,
|
||
child: Childrensidebarwidget(
|
||
onChildSelected: (childId) {
|
||
// Met à jour l'enfant sélectionné
|
||
// Tu peux stocker cet ID dans un state `selectedChildId`
|
||
},
|
||
),
|
||
),
|
||
|
||
Expanded(
|
||
flex: 2,
|
||
child: WMainContentArea(
|
||
// Passe l’enfant sélectionné si besoin
|
||
),
|
||
),
|
||
|
||
],
|
||
);
|
||
}
|