I am learning Flutter and Dart. I noticed that thepubspec.yaml
file seems to contain more than just dependency versions for third party libraries. For example.
# The following section is specific to Flutter.
flutter:
uses-material-design: true
I understand that the Dart Pub Tool defines the format for the pubspec.yaml
and it seems like frameworks like Flutter can enhance the pubspec.yaml
with extra settings raising the following questions:
- Is
pubspec.yaml
designed to be used to provide configuration flags or only dependencies? - Does the way flutter use
pubspec.yaml
idiomatic Dart or unique? - Is
pubspec.yaml
only parsed by thepub
tool or is it parsed at runtime as a generic application config file? - Does Flutter implement it's own parser for
pubspec.yaml
and make settings likeuses-material-design: true
available at runtime?