Thursday, October 8, 2026
HomeiOS Developmenthtml - The tactic 'Fashion' is not outlined for the kind 'Fashion'...

html – The tactic ‘Fashion’ is not outlined for the kind ‘Fashion’ in flutter

[ad_1]

I wish to use Fashion in html in flutter. My imports are :

import 'package deal:flutter_html/flutter_html.dart';
import 'package deal:flutter_html/type.dart'; 

However after I use Fashion in codes, an error comes, saying

 Fashion' is not a perform. (Documentation)  Attempt correcting the title to match an present perform, or outline a technique or perform named 'Fashion'.
The title 'Fashion' is outlined within the libraries 'package deal:flutter_html/type.dart' and 'package deal:path/src/type.dart (by way of package deal:path/path.dart)'  

My codes are :

subtitle: Html(
                      knowledge: consumer.bangla_trans.replaceAll("n", "<br>"),
                      type: {
                        "physique": Fashion(
                          coloration: Colours.inexperienced,
                          fontSize: FontSize(18.0),
                          // fontWeight: FontWeight.daring,
                        ),
                      },
                    ),

Can anyone is aware of how one can overflow this downside ?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments