mirror of
https://github.com/git-touch/git-touch
synced 2024-12-20 20:13:55 +01:00
24 lines
498 B
Dart
24 lines
498 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;
|
|
|
|
SingleScaffold({
|
|
@required this.title,
|
|
@required this.body,
|
|
this.action,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return CommonScaffold(
|
|
title: title,
|
|
body: Scrollbar(child: SingleChildScrollView(child: body)),
|
|
action: action,
|
|
);
|
|
}
|
|
}
|