fit_tool
1.0.5, released 4 years ago by stagescycling.com
A library for reading and writing Garmin FIT fitness activity files.
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.
- file_selector_macos
macOS implementation of the file_selector plugin
82Compare - syncfusion_flutter_pdf
Native Dart library for creating, reading, editing, and securing PDF files.
89Compare - flutter_downloader
Plugin to create and manage background download tasks on Android and iOS.
80Compare - path_provider_android
Android implementation of the path_provider plugin for finding commonly used locations.
79Compare
Works with
Packages commonly used together with fit_tool: ones it builds on, ones built on it, and its own family.
- fixnumfit_tool depends on itProvides 32‑ and 64‑bit signed fixed‑width integer types for Dart.
- loggerfit_tool depends on itAn extensible logger for printing formatted logs with levels, custom filters, and printers.
- csvfit_tool depends on itParse and generate CSV strings with stream support and Excel compatibility.