1

with the libraries and assets my pubspec.yaml file is quite large, it is possible to split the file and perform an import.

Example:

flutter:
  
  fonts:
    - family: JosefinSans
      fonts:
        - asset: fonts/JosefinSans-Light.ttf
          weight: 300
        - asset: fonts/JosefinSans-Regular.ttf
          weight: 400
        - asset: fonts/JosefinSans-SemiBold.ttf
          weight: 600
        - asset: fonts/JosefinSans-Bold.ttf
          weight: 700

into something like:

flutter:
  fonts: 
-var
Nagash
  • 38
  • 5

0 Answers0