1
0
mirror of https://github.com/git-touch/git-touch synced 2025-02-02 17:07:06 +01:00
Rongjian Zhang efe0126bdb build: migrate to NNBD
closes #136
2021-05-16 15:16:35 +08:00

24 lines
497 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,
);
}
}