dart_flutter_version 1.0.16
SDKflutter
Platformandroidioswindowslinuxmacos
Retrieve the current Dart and Flutter SDK semantic versions with easy-to-use nullable getters for streamlined version management.
dart_flutter_version Example
A simple Flutter application demonstrating how to use the dart_flutter_version package to retrieve and display the current Dart and Flutter SDK versions at runtime.
Features
- Display Dart SDK Version: Shows the current Dart SDK version in
MAJOR.MINOR.PATCHformat. - Resolve Flutter SDK Version: Automatically determines the corresponding Flutter SDK version based on the Dart version.
- Conditional UI Rendering: Displays specific UI elements based on the detected Flutter SDK version.
- Interactive Logging: Includes a button to log the Flutter SDK version to the console for debugging purposes.
Prerequisites
- Flutter SDK:
>=3.0.0 - Dart SDK:
>=2.17.0
Ensure you have Flutter installed. If not, follow the Flutter installation guide to set it up on your machine.