formula1_data 2.0.0 copy "formula1_data: ^2.0.0" to clipboard
formula1_data: ^2.0.0 copied to clipboard

A Dart package for retrieving Formula1™ data, such as races, drivers, results, and standings.

CHANGELOG #

2.0.0 #

  • Breaking: Convert from a Flutter plugin to a pure Dart package (remove the flutter SDK dependency); the package can now be used in any Dart project, not just Flutter
  • Fix a bug where Formula1Data closed its shared Dio client after the first API call, causing every subsequent call on the same instance to silently fail and return null/an empty list
  • Correct the package description, which incorrectly referred to graphing/charting features that don't exist
  • Add an example/ directory with a runnable usage sample
  • Add topics and issue_tracker to pubspec.yaml
  • Switch from flutter_lints to lints and update dev dependencies to their latest versions
  • Remove an unused duplicate PitStop model file
  • Fix incorrect field/method names in the README usage sample (Circuit.circuitName, getLaps, PitStop.driver.driverId)
  • Breaking: Every Formula1Data method now returns a PaginatedResult<T> instead of a bare List<T>, exposing items, total, limit, and offset (see #11). Access results via .items instead of the result directly.
  • Add a default User-Agent header identifying this package to the jolpica-f1 API (which requires one); Formula1Data(userAgent: ...) lets consuming apps prefix their own identifier
  • Add offset/limit pagination parameters to getSeasons, getCircuits, getRaces, getConstructors, getDrivers, and getResults, which previously always returned only the API's default 30 items

1.2.1 #

  • Fix getRace method to handle datetime fields correctly

1.2.0 #

  • Fix datetime handling by combining separate date and time fields into a single datetime field
  • Fix various datetime related bugs and inconsistencies

1.1.0 #

  • Rename Formula1Api class to Formula1Data

1.0.0 #

  • Add sprint race related methods (getSprint, getDriverSprint, getConstructorSprint, getSprintByRound)
  • Add qualifying related method (getQualifying)
  • Add race detail methods (getPitStops, getLapTimes, getStatus)

0.2.0 #

  • Create getDriverStanding method.
  • Create getConstructorsStanding method.

0.1.8 #

  • Fixed export files.

0.1.7 #

  • Create getCircuit method.

0.1.6 #

  • Delete widget folder.

0.1.5 #

  • Fixed export files.

0.1.4 #

  • Update refactoring.
  • Create getSchedule method.

0.1.3 #

  • Update example.
  • Create ResultTable widget.

0.1.2 #

  • Linked GitHub.
  • Linked Homepage.
  • Add comments.

0.1.1 #

  • Update LICENSE.

0.1.0 #

  • Initial release.
2
likes
150
points
147
downloads

Documentation

API reference

Publisher

verified publishertecholve.org

Weekly Downloads

A Dart package for retrieving Formula1™ data, such as races, drivers, results, and standings.

Homepage
Repository (GitHub)
View/report issues

Topics

#formula1 #motorsport

License

BSD-3-Clause (license)

Dependencies

dio, logger

More

Packages that depend on formula1_data