flutter_measure_formatter

Simple implementation of units conversion and formatting using native classes. On Android using MeasureFormat On iOS using Measurementformatter

Usage

To use this plugin, add flutter_measure_formatter as a dependency in your pubspec.yaml file.

Getting Started

Plugin is supported from iOS10+ and Android N+

Example

// Import package
import 'package:flutter_measure_formatter/flutter_measure_formatter.dart';

// To obtain formatted or converted unit
 _formattingResult =
          await FlutterMeasureFormatter.formatLength(FlutterMeasureFormatterUnit.METER, 5);
 _conversionResult =
          await FlutterMeasureFormatter.convertLength(FlutterMeasureFormatterUnit.METER, 5);

Libraries

flutter_measure_formatter