Frontend first draft
This commit is contained in:
22
frontend/pweb/lib/pages/with_footer.dart
Normal file
22
frontend/pweb/lib/pages/with_footer.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:pweb/widgets/footer/widget.dart';
|
||||
|
||||
|
||||
class PageWithFooter extends StatelessWidget {
|
||||
final PreferredSizeWidget? appBar;
|
||||
final Widget child;
|
||||
|
||||
const PageWithFooter({super.key, required this.child, this.appBar});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
appBar: appBar,
|
||||
body: Column(
|
||||
children: [
|
||||
Expanded(child: child),
|
||||
FooterWidget(),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user