> ## Documentation Index
> Fetch the complete documentation index at: https://docs.law4devs.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Quick Start

> Make your first Law4Devs API call with Dart/Flutter in under 60 seconds.

## Install

```yaml theme={null}
dependencies:
  law4devs: ^1.0.0
```

```bash theme={null}
dart pub get
```

## Basic Usage

```dart theme={null}
import 'package:law4devs/law4devs.dart';
import 'dart:io';

void main() async {
  final client = Law4DevsClient(
    apiKey: Platform.environment['LAW4DEVS_API_KEY'],
  );

  // List all frameworks
  final page = await client.frameworks.list();
  for (final fw in page.data) {
    print('${fw.slug} — ${fw.name}');
  }

  // List first 5 CRA articles
  final articles = await client.articles.list('cra', perPage: 5);
  for (final a in articles.data) {
    print('Art. ${a.number}: ${a.title}');
  }

  // Auto-paginate all GDPR articles
  await for (final a in client.articles.iter('gdpr')) {
    print('${a.number} ${a.title}');
  }

  // Search across all frameworks
  final results = await client.search.query('data breach notification');
  print('Found ${results.meta.total} results');
}
```

## Next Steps

<CardGroup cols={2}>
  <Card title="Frameworks →" href="/sdks/flutter/frameworks" icon="building-columns" color="#0EA5E9" />

  <Card title="Articles →" href="/sdks/flutter/articles" icon="file-lines" color="#8B5CF6" />

  <Card title="Pagination →" href="/sdks/flutter/pagination" icon="list" color="#22c55e" />

  <Card title="Error Handling →" href="/sdks/flutter/error-handling" icon="triangle-exclamation" color="#f59e0b" />
</CardGroup>
