London Escorts sunderland escorts 1v1.lol unblocked yohoho 76 https://www.symbaloo.com/mix/yohoho?lang=EN yohoho https://www.symbaloo.com/mix/agariounblockedpvp https://yohoho-io.app/ https://www.symbaloo.com/mix/agariounblockedschool1?lang=EN
-7.3 C
New York
Sunday, February 2, 2025

android – Didn’t interpolate TextStyles with totally different inherit values


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(),
    
    );
  }

Related Articles

Social Media Auto Publish Powered By : XYZScripts.com