1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-24 23:01:18 +01:00
git-touch-android-ios-app/lib/scaffolds/single.dart
2019-10-02 16:10:31 +08:00

27 lines
595 B
Dart

import 'package:flutter/material.dart';
import 'package:git_touch/scaffolds/common.dart';
class SingleScaffold extends StatelessWidget {
final Widget title;
final Widget body;
final Widget action;
final Color backgroundColor;
SingleScaffold({
@required this.title,
@required this.body,
this.action,
this.backgroundColor,
});
@override
Widget build(BuildContext context) {
return CommonScaffold(
title: title,
body: Scrollbar(child: SingleChildScrollView(child: body)),
action: action,
backgroundColor: backgroundColor,
);
}
}