2024-04-12 16:38:20 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:solian/widgets/navigation_drawer.dart';
|
|
|
|
|
|
|
|
class LayoutWrapper extends StatelessWidget {
|
|
|
|
final Widget? child;
|
2024-04-13 16:03:50 +00:00
|
|
|
final String title;
|
2024-04-12 16:38:20 +00:00
|
|
|
|
2024-04-13 16:03:50 +00:00
|
|
|
const LayoutWrapper({super.key, this.child, required this.title});
|
2024-04-12 16:38:20 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
drawer: const SolianNavigationDrawer(),
|
2024-04-13 16:03:50 +00:00
|
|
|
appBar: AppBar(title: Text(title)),
|
2024-04-13 11:47:31 +00:00
|
|
|
body: child ?? Container(),
|
2024-04-12 16:38:20 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|