1
0
mirror of https://github.com/git-touch/git-touch synced 2025-03-07 20:57:44 +01:00

24 lines
504 B
Dart
Raw Normal View History

2019-09-25 17:06:36 +08:00
import 'package:flutter/material.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 {
final Widget title;
final Widget body;
final Widget trailing;
SingleScaffold({
@required this.title,
@required this.body,
this.trailing,
});
@override
Widget build(BuildContext context) {
return CommonScaffold(
title: title,
2019-09-28 21:40:42 +08:00
body: Scrollbar(child: SingleChildScrollView(child: body)),
2019-10-02 14:58:11 +08:00
action: trailing,
2019-09-25 17:06:36 +08:00
);
}
}