1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00
comunicmobile/lib/ui/widgets/post_container_widget.dart
2022-03-11 16:40:56 +01:00

23 lines
501 B
Dart

import 'package:flutter/material.dart';
/// Here is a widget used to contain a post
///
/// @author Pierre Hubert
class PostContainer extends StatelessWidget {
final Widget child;
const PostContainer({Key? key, required this.child}) : super(key: key);
@override
Widget build(BuildContext context) {
return Align(
alignment: Alignment.center,
child: ConstrainedBox(
constraints: BoxConstraints.loose(Size.fromWidth(500)),
child: child,
),
);
}
}