I am new to flutter, I manage to receive the data from server and decoded it as well, when i tried to display in the text, it shows like below.
Code to display the text
import 'package:flutter/material.dart';
import 'package:sachchirashifal/model/serverdata.dart';
class RashiFalDetail extends StatelessWidget {
Data rashi;
RashiFalDetail({this.rashi});
@override
Widget build(BuildContext context) {
return new Container(
child: new Text(rashi.desc, style: new TextStyle(
fontSize: 18.0,
color: Colors.black
))
);
}
}
Any suggestions will be great, Thank u.
Your text has html tags. It should be rendered/viewed as HTML. Check this package. This should solve your problem of hindi rendering as well.
NOTE: If you are unable to install this package, update your flutter as this package is very new and built with the latest flutter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With