Skip to content

Commit

Permalink
Updated --dev -> dev: on install tab. (dart-lang#7157)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Nov 2, 2023
1 parent 3fd71ce commit 32a3cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/frontend/templates/views/pkg/install_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ d.Node _useAsLibrary(
final bool useFlutterPackagesGet =
isFlutterPackage || (tags != null && tags.contains(SdkTag.sdkFlutter));
final pubAddCommand =
'pub add ${version.package}${isDevDependency ? ' --dev' : ''}';
'pub add ${isDevDependency ? 'dev:' : ''}${version.package}';
final exampleDepKey = isDevDependency ? 'dev_dependencies' : 'dependencies';
final showEditorSupport = usePubGet || useFlutterPackagesGet;
final flutterOnly = useFlutterPackagesGet && !usePubGet;
Expand Down

0 comments on commit 32a3cad

Please sign in to comment.