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

Can change password

This commit is contained in:
2020-04-30 18:19:01 +02:00
parent 29cc8558c3
commit 289bf30a40
4 changed files with 165 additions and 1 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,
));
}
}