mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Can change password
This commit is contained in:
23
lib/ui/widgets/auto_sized_dialog_content_widget.dart
Normal file
23
lib/ui/widgets/auto_sized_dialog_content_widget.dart
Normal 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,
|
||||
));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user