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

Parse URLs

This commit is contained in:
2020-04-16 10:53:09 +02:00
parent 3389ca18f7
commit 7de882338d
2 changed files with 61 additions and 7 deletions

View File

@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
/// This callback return null if the text has to be left as is or a TextSpan
/// if it has been sub parsed...
typedef ParseCallBack = List<TextSpan> Function(TextStyle, String);
typedef ParseCallBack = List<InlineSpan> Function(TextStyle, String);
class BBCodeParsedWidget extends StatelessWidget {
final _Element _content;
@ -241,7 +241,6 @@ class _Element {
if (parsed != null && parsed.length > 0)
return TextSpan(
text: text,
style: generatedStyle,
children: parsed,
);