Skip to content

Get flutter version from package_info #36709

@ghost

Description

Is it possible to get the current version of flutter using the package_info plugin?

ie:

import 'package:package_info/package_info.dart';

PackageInfo packageInfo = await PackageInfo.fromPlatform();

String flutterVersion = packageInfo.flutterVersion;

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityp: package_infoThe PackageInfo pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions