formula1_data 2.0.0
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
flutterSDK dependency); the package can now be used in any Dart project, not just Flutter - Fix a bug where
Formula1Dataclosed its sharedDioclient after the first API call, causing every subsequent call on the same instance to silently fail and returnnull/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
topicsandissue_trackertopubspec.yaml - Switch from
flutter_lintstolintsand update dev dependencies to their latest versions - Remove an unused duplicate
PitStopmodel file - Fix incorrect field/method names in the README usage sample (
Circuit.circuitName,getLaps,PitStop.driver.driverId) - Breaking: Every
Formula1Datamethod now returns aPaginatedResult<T>instead of a bareList<T>, exposingitems,total,limit, andoffset(see #11). Access results via.itemsinstead of the result directly. - Add a default
User-Agentheader identifying this package to the jolpica-f1 API (which requires one);Formula1Data(userAgent: ...)lets consuming apps prefix their own identifier - Add
offset/limitpagination parameters togetSeasons,getCircuits,getRaces,getConstructors,getDrivers, andgetResults, 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.