1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-19 19:54:54 +01:00
git-touch-android-ios-app/lib/scaffolds/single.dart

24 lines
498 B
Dart
Raw Normal View History

2019-09-25 11:06:36 +02:00
import 'package:flutter/material.dart';
2019-10-02 08:58:11 +02:00
import 'package:git_touch/scaffolds/common.dart';
2019-09-25 11:06:36 +02:00
class SingleScaffold extends StatelessWidget {
final Widget title;
final Widget body;
2019-10-02 10:09:54 +02:00
final Widget action;
2019-09-25 11:06:36 +02:00
SingleScaffold({
@required this.title,
@required this.body,
2019-10-02 10:09:54 +02:00
this.action,
2019-09-25 11:06:36 +02:00
});
@override
Widget build(BuildContext context) {
return CommonScaffold(
title: title,
2019-09-28 15:40:42 +02:00
body: Scrollbar(child: SingleChildScrollView(child: body)),
2019-10-02 10:09:54 +02:00
action: action,
2019-09-25 11:06:36 +02:00
);
}
}