2000calories / flutter_easy_rich_text

The EasyRichText widget provides an easy way to use RichText.
https://pub.dev/packages/easy_rich_text
MIT License
79 stars 34 forks source link

Not working on web #34

Closed Bockey1999 closed 2 years ago

Bockey1999 commented 2 years ago
Screenshot 2022-06-26 at 18 56 54

This is what it shows when I deploy on to the web while locally it show the text

2000calories commented 2 years ago

Please show your code and flutter doctor output.

Bockey1999 commented 2 years ago

import 'package:easy_rich_text/easy_rich_text.dart'; import 'package:flutter/material.dart';

class testing extends StatefulWidget { const testing({Key? key}) : super(key: key);

@override State createState() => _testingState(); }

class _testingState extends State { @override Widget build(BuildContext context) { return Container( child: EasyRichText( "I want blue color here. I want no blue font here. I want blue invalid here.", patternList: [ EasyRichTextPattern( targetString: 'blue', stringBeforeTarget: 'want', stringAfterTarget: "color", style: TextStyle(color: Colors.blue), ), ], ), ); } }

Screenshot 2022-06-28 at 10 43 24
2000calories commented 2 years ago

The issue is only on Safari, am I right? Safari does not support lookahead and behind RegExp, which is required for conditional search in EasyRichText.

2000calories commented 2 years ago

closed since no further feedback