mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-14 21:24:02 +08:00
18
lib/common/widgets/scaffold.dart
Normal file
18
lib/common/widgets/scaffold.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
Widget scaffold({
|
||||
Widget? appBar,
|
||||
required Widget body,
|
||||
}) {
|
||||
if (appBar != null) {
|
||||
body = Column(
|
||||
children: [
|
||||
appBar,
|
||||
Expanded(child: body),
|
||||
],
|
||||
);
|
||||
}
|
||||
return Material(
|
||||
child: body,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user