gitea 0.1.0

Gitea for Dart #

Runtime Release License Coverage Build

Gitea client library, in Dart.

Documentation #

Development #

License #

Gitea for Dart is distributed under the MIT License.

Changelog #

Version 0.1.0 #

  • Initial release.


import 'dart:async';
import 'package:gitea/gitea.dart';

/// Handles the payload of a Gitea push event.
Future<PushEvent> main() async => null;

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  gitea: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:gitea/gitea.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5

Health suggestions

Format lib/src/models/payload_commit.dart.

Run dartfmt to format lib/src/models/payload_commit.dart.

Format lib/src/models/payload_commit_verification.dart.

Run dartfmt to format lib/src/models/payload_commit_verification.dart.

Format lib/src/models/payload_user.dart.

Run dartfmt to format lib/src/models/payload_user.dart.

Fix additional 8 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/models/permission.dart (Run dartfmt to format lib/src/models/permission.dart.)
  • lib/src/models/repository.dart (Run dartfmt to format lib/src/models/repository.dart.)
  • lib/src/models/server_version.dart (Run dartfmt to format lib/src/models/server_version.dart.)
  • lib/src/models/status_state.dart (Run dartfmt to format lib/src/models/status_state.dart.)
  • lib/src/models/team.dart (Run dartfmt to format lib/src/models/team.dart.)
  • lib/src/models/team_permission.dart (Run dartfmt to format lib/src/models/team_permission.dart.)
  • lib/src/models/user.dart (Run dartfmt to format lib/src/models/user.dart.)
  • lib/src/push_event.dart (Run dartfmt to format lib/src/push_event.dart.)

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field was unreachable.

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (json_annotation).

Documentation URL doesn't exist. (-10 points)

At the time of the analysis the documentation field was unreachable.

Package is getting outdated. (-22.74 points)

The package was last published 64 weeks ago.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
json_annotation ^2.0.0 2.4.0 3.0.1
Dev dependencies
build_runner ^1.1.2
build_test ^0.10.3
build_web_compilers ^0.4.4
coverage ^0.12.2
grinder ^0.8.3
json_serializable ^2.0.0
test ^1.5.1