flutter_shapes_inc 1.0.1 copy "flutter_shapes_inc: ^1.0.1" to clipboard
flutter_shapes_inc: ^1.0.1 copied to clipboard

A lightweight Flutter package for integrating with Shapes Inc AI. Easy-to-use functions for chat, multimodal messages, and AI-powered features.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'screens/demo_launcher_screen.dart';
import 'utils/theme.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Shapes Chat',
      theme: AppTheme.lightTheme,
      darkTheme: AppTheme.darkTheme,
      themeMode: ThemeMode.system,
      home: const DemoLauncherScreen(),
      debugShowCheckedModeBanner: false,
      builder: (context, child) {
        // Add responsive design support
        final mediaQuery = MediaQuery.of(context);
        final textScaler = mediaQuery.textScaler
            .clamp(minScaleFactor: 0.8, maxScaleFactor: 1.4);

        return MediaQuery(
          data: mediaQuery.copyWith(
            textScaler: textScaler,
          ),
          child: child!,
        );
      },
    );
  }
}
2
likes
150
points
31
downloads

Publisher

verified publisherionicerrrrscode.com

Weekly Downloads

A lightweight Flutter package for integrating with Shapes Inc AI. Easy-to-use functions for chat, multimodal messages, and AI-powered features.

Repository (GitHub)
View/report issues

Topics

#artificial-intelligence #chat #api #multimodal #ai-assistant

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

dio, equatable, flutter, http, json_annotation

More

Packages that depend on flutter_shapes_inc