mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() This makes various Flutter version information available at runtime.
It's basically the same as executing `flutter --version`. This is
especially useful for tools like Crashlytics or Sentry (see for example
https://github.com/getsentry/sentry-dart/issues/416).
Usage example:
```dart
FlutterVersion.version; // 3.16.5
FlutterVersion.channel; // stable
FlutterVersion.gitUrl; // https://github.com/flutter/flutter.git
FlutterVersion.frameworkRevision; //
|
||
---|---|---|
.. | ||
data | ||
utils | ||
build_aar_test.dart | ||
build_apk_test.dart | ||
build_appbundle_test.dart | ||
build_bundle_test.dart | ||
create_test.dart | ||
devices_test.dart | ||
packages_test.dart | ||
script_test.dart | ||
upgrade_test.dart | ||
widget_preview_test.dart |