- Implemented AppFooter widget for mobile and desktop views. - Created ChildrenSidebar widget to display children's information. - Developed AppLayout to manage app structure with optional footer. - Added ChildrenSidebar for selecting children and displaying their status. - Introduced DashboardAppBar for navigation and user actions. - Built WMainContentArea for displaying assistant details and calendar. - Created MainContentArea to manage contracts and events display. - Implemented MessagingSidebar for messaging functionality. - Updated widget tests to reflect new structure and imports.
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
|
||
),
|
||
),
|
||
|
||
],
|
||
);
|
||
}
|