openrouter_client 0.1.1 copy "openrouter_client: ^0.1.1" to clipboard
openrouter_client: ^0.1.1 copied to clipboard

A Dart client library for the OpenRouter API.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'screens/home_screen.dart';

void main() {
  runApp(const OpenRouterExampleApp());
}

class OpenRouterExampleApp extends StatelessWidget {
  const OpenRouterExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    const seed = Color(0xFF1F6FEB);
    return MaterialApp(
      title: 'OpenRouter Client Demo',
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(seedColor: seed),
        fontFamily: 'Avenir',
        inputDecorationTheme: const InputDecorationTheme(
          filled: true,
          fillColor: Color(0xFFF3F6FB),
          border: OutlineInputBorder(
            borderRadius: BorderRadius.all(Radius.circular(14)),
          ),
        ),
      ),
      home: const OpenRouterHomePage(),
    );
  }
}
1
likes
150
points
9
downloads

Documentation

API reference

Publisher

verified publisherfebryardiansyah.my.id

Weekly Downloads

A Dart client library for the OpenRouter API.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

http

More

Packages that depend on openrouter_client