This is the page of my setting menu widget page or code
class Setting extends StatelessWidget {
Setting(this.title);
String title;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(title),
backgroundColor: Theme.of(context).primaryColor,
),
body: Column(
children: <Widget>[
setttingWidget(Icons.favorite),
],
)
);
}
}
And this is settingWidget page or code :
class setttingWidget extends StatelessWidget {
setttingWidget(IconData next);
var next;
@override
Widget build(BuildContext context) {
return Card(
child: Row(
children: <Widget>[
Icon(next),
Text("Network Setting",
style: TextStyle(
fontSize: 20
),)
],
),
);
}
}
I want set the icon image from the setting Widget, so use icon data but no icon is appear in app, there the code also show no error at all.

