I’ve two features of theme, darkThemeData, and lightThemeData. Nevertheless, when the App is run, the theme works nice with Poppins because the default font however once I click on the button to modify to Darkish mode I get this error and the fontFamily is misplaced. I attempted totally different options however I’m caught.
Widget construct(BuildContext context) {
ultimate ThemeData lightThemeData = ThemeData(
textTheme: GoogleFonts.poppinsTextTheme(
Theme.of(context).textTheme.copyWith(
bodyMedium: GoogleFonts.poppins(),
displaySmall: GoogleFonts.poppins(),
),
),
);
ultimate ThemeData darkThemeData = ThemeData(
textTheme: GoogleFonts.poppinsTextTheme(
Theme.of(context).textTheme.copyWith(
bodyMedium: GoogleFonts.poppins(),
displaySmall: GoogleFonts.poppins(),
),
),
);
return GetMaterialApp(
debugShowCheckedModeBanner: false,
theme: darkmode == false ? darkThemeData : lightThemeData,
dwelling: navbar(),
);
}