24 lines
487 B
Dart
24 lines
487 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:git_touch/scaffolds/utils.dart';
|
||
|
|
||
|
class SingleScaffold extends StatelessWidget {
|
||
|
final Widget title;
|
||
|
final Widget body;
|
||
|
final Widget trailing;
|
||
|
|
||
|
SingleScaffold({
|
||
|
@required this.title,
|
||
|
@required this.body,
|
||
|
this.trailing,
|
||
|
});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return CommonScaffold(
|
||
|
title: title,
|
||
|
body: SingleChildScrollView(child: body),
|
||
|
trailing: trailing,
|
||
|
);
|
||
|
}
|
||
|
}
|