1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-29 08:16:28 +00:00
comunicmobile/lib/ui/widgets/post_container_widget.dart

23 lines
501 B
Dart
Raw Normal View History

2020-05-16 07:10:09 +00:00
import 'package:flutter/material.dart';
/// Here is a widget used to contain a post
///
/// @author Pierre Hubert
class PostContainer extends StatelessWidget {
final Widget child;
2022-03-11 15:40:56 +00:00
const PostContainer({Key? key, required this.child}) : super(key: key);
2020-05-16 07:10:09 +00:00
@override
Widget build(BuildContext context) {
return Align(
alignment: Alignment.center,
child: ConstrainedBox(
constraints: BoxConstraints.loose(Size.fromWidth(500)),
child: child,
),
);
}
}