git-touch-android-ios-app/lib/scaffolds/single.dart

23 lines
512 B
Dart
Raw Normal View History

2022-09-17 14:35:45 +02:00
import 'package:flutter/cupertino.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 {
2022-09-06 18:28:12 +02:00
const SingleScaffold({
2021-05-16 09:16:35 +02:00
required this.title,
required this.body,
2019-10-02 10:09:54 +02:00
this.action,
2019-09-25 11:06:36 +02:00
});
2022-09-21 18:28:21 +02:00
final Widget title;
final Widget body;
final Widget? action;
2019-09-25 11:06:36 +02:00
@override
Widget build(BuildContext context) {
return CommonScaffold(
title: title,
2022-09-17 14:35:45 +02:00
body: CupertinoScrollbar(child: SingleChildScrollView(child: body)),
2019-10-02 10:09:54 +02:00
action: action,
2019-09-25 11:06:36 +02:00
);
}
}