'google_fonts package arguments don't match

im try using this package google_fonts: ^2.3.0 and google_fonts: ^2.1.0 with flutter 2.8.1 and it result this error, back in 2021 it works fine. Don't know what's wrong here

 TextStyle textPrimary = GoogleFonts.poppins(
    color: Colors.white,
    fontWeight: FontWeight.w600,
    fontSize: 24,
  );

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source