Open8

Dart get started

memorumemoru

flutter, dart, git --version

PS C:\Users\sakai> git --version
git version 2.47.1.windows.1
PS C:\Users\sakai> dart --version
Dart SDK version: 3.6.1 (stable) (Tue Jan 7 09:50:00 2025 -0800) on "windows_x64"
PS C:\Users\sakai> flutter --version
Flutter 3.27.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 68415ad1d9 (8 hours ago) • 2025-01-13 10:22:03 -0800
Engine • revision e672b006cb
Tools • Dart 3.6.1 • DevTools 2.40.2

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ The Google Privacy Policy describes how data is handled in this service.   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/to/crash-reporting                                     ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ║                                                                            ║
  ║ To disable animations in this tool, use                                    ║
  ║ 'flutter config --no-cli-animations'.                                      ║
  ╚════════════════════════════════════════════════════════════════════════════╝


The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic
data along with package dependencies, and crash reporting to send basic crash
reports. This data is used to help improve the Dart platform, Flutter framework,
and related tools.

Telemetry is not sent on the very first run. To disable reporting of telemetry,
run this terminal command:

    flutter --disable-analytics

If you opt out of telemetry, an opt-out event will be sent, and then no further
information will be sent. This data is collected in accordance with the Google
Privacy Policy (https://policies.google.com/privacy).

You have received two consent messages because the flutter tool is migrating to a new analytics system. Disabling
analytics collection will disable both the legacy and new analytics collection systems. You can disable analytics
reporting by running `flutter --disable-analytics`

PS C:\Users\sakai>
memorumemoru

dart create -template console cli

PS G:\workspace\dart> dart create -t console cli
Creating cli using template console...

  .gitignore
  analysis_options.yaml
  CHANGELOG.md
  pubspec.yaml
  README.md
  bin\cli.dart
  lib\cli.dart
  test\cli_test.dart

Running pub get...
  Resolving dependencies...
  Downloading packages...
  Changed 50 dependencies!

Created project cli in cli! In order to get started, run the following commands:

  cd cli
  dart run

memorumemoru

dart run, dart test

PS G:\workspace\dart> cd cli
PS G:\workspace\dart\cli> ls


    Directory: G:\workspace\dart\cli


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----          01/14/25     11:46                .dart_tool
d-----          01/14/25     11:45                bin
d-----          01/14/25     11:45                lib
d-----          01/14/25     11:45                test
-a----          01/14/25     11:45             86 .gitignore
-a----          01/14/25     11:45           1038 analysis_options.yaml
-a----          01/14/25     11:45             29 CHANGELOG.md
-a----          01/14/25     11:46          11488 pubspec.lock
-a----          01/14/25     11:45            265 pubspec.yaml
-a----          01/14/25     11:45            122 README.md


PS G:\workspace\dart\cli> dart run
Building package executable...
Built cli:cli.
Hello world: 42!

PS G:\workspace\dart\cli> dart test
Building package executable... (7.9s)
Built test:test.
00:01 +1: All tests passed!
PS G:\workspace\dart\cli>