skip to Main Content

Flutter + VsCode: –dart-define is not (always) applied

Create a new demo 'counter' app (Flutter Demo Home Page), and change MyApp to this: // ... // This widget is the root of your application. @override Widget build(BuildContext context) { print(const String.fromEnvironment('TESTVAR1')); print(const String.fromEnvironment('TESTVAR2')); return MaterialApp( // ... Then…

VIEW QUESTION
Back To Top
Search