- Framework: Flutter web - Pages: Login, inscription, dashboards - Services: API client, authentification, gestion d'état - Intégration avec backend NestJS - Dockerfile pour déploiement web
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!,
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|