Files
sendico/frontend/pweb/lib/pages/with_footer.dart
2026-02-11 02:48:30 +03:00

36 lines
704 B
Dart

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: CustomScrollView(
slivers: [
SliverFillRemaining(
hasScrollBody: false,
child: Column(
children: [
Expanded(
child: Center(child: child),
),
FooterWidget(),
],
),
),
],
),
);
}