diff --git a/scriptsharp/ScriptSharp/Utils/UtilsFirebase.cs b/scriptsharp/ScriptSharp/Utils/UtilsFirebase.cs index d1c4856..e554d0b 100644 --- a/scriptsharp/ScriptSharp/Utils/UtilsFirebase.cs +++ b/scriptsharp/ScriptSharp/Utils/UtilsFirebase.cs @@ -9,6 +9,6 @@ public static void InstallFirebase() } public static void InstallFlutterFire() { - Utils.RunCommand("dart pub global activate flutterfire_cli"); + Utils.RunCommand(UtilsFlutter.PathToDart()+" pub global activate flutterfire_cli"); } } \ No newline at end of file diff --git a/scriptsharp/ScriptSharp/Utils/UtilsFlutter.cs b/scriptsharp/ScriptSharp/Utils/UtilsFlutter.cs index 96260da..1010ae1 100644 --- a/scriptsharp/ScriptSharp/Utils/UtilsFlutter.cs +++ b/scriptsharp/ScriptSharp/Utils/UtilsFlutter.cs @@ -29,4 +29,11 @@ public static string PathToFlutter() Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "flutter", "bin", "flutter"); } + + public static string PathToDart() + { + return Path.Combine( + Environment.GetFolderPath(Environment.SpecialFolder.Desktop), + "flutter", "bin", "dart"); + } } \ No newline at end of file