Skip to content
pubscout

fit_tool

1.0.5, released 4 years ago by stagescycling.com

A library for reading and writing Garmin FIT fitness activity files.

$ flutter pub add fit_tool
Source repository

What it does

Reads and decodes Garmin FIT files either all at once or via byte streams into messages and rows. Allows building and writing custom workouts, activities, and courses into standard FIT files.

AI-written summary of version 1.0.5, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to parse Garmin FIT files in a Flutter or Dart app
  • You need to generate FIT workout files to export to devices

Skip it when

  • You need to interact with live fitness sensors directly (this only processes static files)

Strengths

  • Supports both batch and stream-based decoding for large files
  • Can convert FIT data to and from CSV format

Weaknesses

  • Relies on manual file path setup which may require platform-specific path handling

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
4

not documented

import 'dart:io';
import 'package:fit_tool/src/fit_file.dart';

Future<void> main() async {
  final file = File('./test/data/sdk/Activity.fit');
  final bytes = await file.readAsBytes();
  final fitFile = FitFile.fromBytes(bytes);
}

Alternatives

Packages that do the same job and could replace fit_tool.

Works with

Packages commonly used together with fit_tool: ones it builds on, ones built on it, and its own family.