flutter_agent_pupau 1.0.0
flutter_agent_pupau: ^1.0.0 copied to clipboard
A Flutter plugin that integrates Pupau AI agents into your application.
import 'package:flutter/material.dart';
import 'package:flutter_agent_pupau/flutter_agent_pupau.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Pupau Agent Example',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xff121299)),
useMaterial3: true,
),
home: const HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text(
'Pupau Agent Example',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 24),
PupauAgentAvatar(
config: PupauConfig.createWithApiKey(
apiKey: 'your-api-key-here',
),
),
],
),
),
);
}
}