Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Gradle 有一个方便的功能来实现单独的构建变体/风格。Dart(不是 Flutter)中有这样的功能吗?我需要为一个项目实现不同的代码库(不同的实现),具体取决于所选的构建变体。例如,我可以将两个不同的实现放在不同的(分离的)包中,并根据编译时条件导入它们。Dart 有条件导入,但似乎它们不允许自定义条件。