mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-14 05:03:57 +08:00
19 lines
277 B
Dart
19 lines
277 B
Dart
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,
|
|
);
|
|
}
|