سلام
من وقتی میخوام تو تکستم از text theme استفاده کنم بهم ارور میده
textTheme: GoogleFonts.latoTextTheme(TextTheme(
bodyMedium: TextStyle(fontSize: 15),
bodyLarge: TextStyle(fontSize: 13),
titleLarge: TextStyle(fontWeight: FontWeight.bold),
titleMedium: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
)),
این قسمت themedata و کد text که قسمت style:theme.of(context) رو ارور میده
const Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'david efron',
style: theme.of(context).textTheme.titleMedium,
),
SizedBox(
height: 2,
),
Text('application developer'),
SizedBox(
height: 4,
),
Row(
children: [
Icon(CupertinoIcons.location_circle),
Text(
'amsterdam , netherlands',
style: theme.of(context).TextTheme.bodyLarge,
),
],