- 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.
29 lines
578 B
Dart
29 lines
578 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class AppLayout extends StatelessWidget {
|
|
final PreferredSizeWidget appBar;
|
|
final Widget body;
|
|
final Widget? footer;
|
|
|
|
const AppLayout({
|
|
Key? key,
|
|
required this.appBar,
|
|
required this.body,
|
|
this.footer,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: const Color(0xFFF5F7FA),
|
|
appBar: appBar,
|
|
body: Column(
|
|
children: [
|
|
Expanded(child: body),
|
|
if (footer != null) footer!,
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|