Flutter + Vedika API

Introduction

Build cross-platform astrology apps with Flutter. Dart SDK, examples.

Prerequisites

  • Vedika API key (get from dashboard)
  • Flutter 3.10 or later (Dart 3)

Installation

The SDK installs from GitHub, pinned to a release tag.

# pubspec.yaml
dependencies:
  vedika_sdk:
    git:
      url: https://github.com/vedika-io/vedika-sdk-flutter.git
      ref: v1.0.5

# then fetch it
flutter pub get

Basic Usage

import 'package:vedika_sdk/vedika_sdk.dart';

void main() async {
  final vedika = VedikaClient(apiKey: 'YOUR_API_KEY');
  final birth = BirthDetails(
    datetime: '1990-06-15T10:30:00',
    latitude: 18.5204,
    longitude: 73.8567,
    timezone: 'Asia/Kolkata',
  );

  final result = await vedika.astrology.birthChart(birth);
  print(result);

  vedika.dispose();
}

Anything compiled into a shipped app can be extracted, including the API key. For consumer apps, call the Vedika API from your own backend and keep the key on the server.

Get Started Free

Try our sandbox API with no authentication required

Try Sandbox Read Docs