1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Move a file to a more logical location

This commit is contained in:
2020-05-02 15:32:06 +02:00
parent 804457c761
commit 2ec8693e85
4 changed files with 3 additions and 3 deletions

View File

@ -0,0 +1,23 @@
import 'package:flutter/material.dart';
/// Widget that can be used to build dialog content
///
/// @author Pierre Hubert
class AutoSizeDialogContentWidget extends StatelessWidget {
final Widget child;
const AutoSizeDialogContentWidget({
Key key,
@required this.child,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return ConstrainedBox(
constraints:
BoxConstraints(maxHeight: MediaQuery.of(context).size.height - 50),
child: SingleChildScrollView(
child: child,
));
}
}