Fix "A value of type 'ListTileThemeData' can't be assigned to a variable of type 'ListTileTheme'"
Channel:
Subscribers:
18,300
Published on ● Video Link: https://www.youtube.com/watch?v=DvVNKRiIp0I
In this video, you will learn why you getting the "A value of type 'ListTileThemeData' can't be assigned to a variable of type 'ListTileTheme" in flutter and how to Fix it.
Code:
In
cupertino_settings_item.dart
change final ListTileTheme tileTheme = ListTileTheme.of(context);
to final tileTheme = ListTileTheme.of(context);
--------------------------------------------
And change
_iconColor(ThemeData theme, ListTileTheme tileTheme)
to _iconColor(ThemeData theme, ListTileThemeData tileTheme)
original article: https://www.sadeqe.com/
Visit our website: https://www.sadeqe.com/
Instagram - https://www.instagram.com/absadeqe/
Twitter - https://twitter.com/sadeqe3