1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-07-06 18:12:52 +00:00
Files
comunicmobile/lib/ui/widgets/text_widget.dart
2020-04-16 09:53:19 +02:00

22 lines
489 B
Dart

import 'package:comunic/utils/bbcode_parser.dart';
import 'package:flutter/material.dart';
/// Text widget
///
/// The content passed to this widget is automatically parsed
///
/// @author Pierre Hubert
class TextWidget extends StatelessWidget {
final String content;
const TextWidget({Key key, @required this.content})
: assert(content != null),
super(key: key);
@override
Widget build(BuildContext context) {
return BBCodeParsedWidget(text: content);
}
}