2022-09-17 20:35:45 +08:00
|
|
|
import 'package:flutter/cupertino.dart';
|
2019-10-02 14:58:11 +08:00
|
|
|
import 'package:git_touch/scaffolds/common.dart';
|
2019-09-25 17:06:36 +08:00
|
|
|
|
|
|
|
class SingleScaffold extends StatelessWidget {
|
|
|
|
|
2022-09-07 00:28:12 +08:00
|
|
|
const SingleScaffold({
|
2021-05-16 15:16:35 +08:00
|
|
|
required this.title,
|
|
|
|
required this.body,
|
2019-10-02 16:09:54 +08:00
|
|
|
this.action,
|
2019-09-25 17:06:36 +08:00
|
|
|
});
|
2022-09-22 00:28:21 +08:00
|
|
|
final Widget title;
|
|
|
|
final Widget body;
|
|
|
|
final Widget? action;
|
2019-09-25 17:06:36 +08:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return CommonScaffold(
|
|
|
|
title: title,
|
2022-09-17 20:35:45 +08:00
|
|
|
body: CupertinoScrollbar(child: SingleChildScrollView(child: body)),
|
2019-10-02 16:09:54 +08:00
|
|
|
action: action,
|
2019-09-25 17:06:36 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|