Search packages, repositories and app categories

Package detailsv0.0.3

apinion

Simplify API calls in Dart & Flutter with Apinion — clean syntax, built-in logging, and easy setup.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
55
Likes
5
Pub points
140

Install package

flutter pub add apinion

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Apinion is a lightweight Dart and Flutter package designed to simplify HTTP API calls with clean, readable syntax. It offers built-in logging for debugging, minimal setup, and seamless integration across multiple platforms. Ideal for developers seeking a straightforward way to handle network requests without boilerplate code. The package supports Android, iOS, Web, macOS, Windows, and Linux, making it versatile for cross-platform applications. With a focus on developer experience, Apinion streamlines the process of sending requests and managing responses.

Use cases

  • Making REST API calls in Flutter apps
  • Debugging network requests with built-in logs
  • Simplifying HTTP client setup
  • Cross-platform network communication
  • Rapid prototyping of API integrations
  • Reducing boilerplate in HTTP request handling

Key features

  • Clean, intuitive API syntax
  • Built-in request/response logging
  • Minimal configuration required
  • Supports all major platforms
  • Easy integration with existing projects
  • Automatic error handling

Suitable for

  • Flutter developers seeking simplicity
  • Teams prioritizing rapid development
  • Projects requiring consistent logging
  • Apps with frequent API interactions
  • Developers avoiding complex HTTP clients

Considerations

  • Limited advanced features compared to full-featured clients
  • Depends on external GitHub repository
  • May require additional configuration for custom headers or auth
  • Not ideal for highly complex API workflows
  • Best suited for standard REST use cases

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

apinion_logo

Apinion is a lightweight, developer-friendly Dart package that simplifies REST API calls in your Flutter or Dart apps.

  • 🔐 Optional API key support
  • 🌐 Base URL set once
  • ⏱ Customizable timeout duration
  • 🪄 One-liner HTTP calls: GET, POST, PUT, PATCH, DELETE
  • 🖼️ File/image upload support
  • 🪵 Built-in pretty logger using logger package

Documentation Button


🔍 Example

import 'package:apinion/apinion.dart';

void main() async {
  ApinionConfig.init(
    baseUrl: 'https://jsonplaceholder.typicode.com',
  );

  // GET request
  final getResponse = await ApinionClient.get('/posts/1');
  if (getResponse.isSuccess) {
    print('Title: ${getResponse.responseData['title']}');
  } else {
    print('Error: ${getResponse.errorMessage}');
  }

  // POST request
  final postResponse = await ApinionClient.post('/posts', body: {
    'title': 'foo',
    'body': 'bar',
    'userId': 1,
  });
  if (postResponse.isSuccess) {
    print('New Post ID: ${postResponse.responseData['id']}');
  }
}

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.